Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docxtemplater-image-module
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
docxtemplater-image-module
Commits
103431b1
Commit
103431b1
authored
Dec 13, 2015
by
Edgar HIPP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style
parent
6e22c8e3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
coffee/docUtils.coffee
+3
-2
coffee/index.coffee
+1
-1
No files found.
coffee/docUtils.coffee
View file @
103431b1
...
...
@@ -34,9 +34,10 @@ DocUtils.pregMatchAll= (regex, content) ->
content
=
lolalolilala
returns
:
[{
0
:
'la'
,
offset
:
2
},{
0
:
'la'
,
offset
:
8
},{
0
:
'la'
,
offset
:
10
}]
###
regex
=
(
new
RegExp
(
regex
,
'g'
))
unless
(
typeof
regex
==
'object'
)
if
typeof
regex
!=
'object'
regex
=
new
RegExp
(
regex
,
'g'
)
matchArray
=
[]
replacer
=
(
match
,
pn
...,
offset
,
string
)
->
replacer
=
(
match
,
pn
...,
offset
,
string
)
->
pn
.
unshift
match
#add match so that pn[0] = whole match, pn[1]= first parenthesis,...
pn
.
offset
=
offset
matchArray
.
push
pn
...
...
coffee/index.coffee
View file @
103431b1
...
...
@@ -51,7 +51,7 @@ class ImageModule
imgBuffer
=
@
options
.
getImage
(
tagValue
,
tag
)
catch
e
return
@
replaceBy
(
startEnd
,
tagXml
)
imageRels
=
@
imgManager
.
loadImageRels
()
;
imageRels
=
@
imgManager
.
loadImageRels
()
if
imageRels
rId
=
imageRels
.
addImageRels
(
@
getNextImageName
(),
imgBuffer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment