Commit 8cab9112 by Edgar Hipp

removed description from arguments

parent d0b348e1
...@@ -43,7 +43,7 @@ class ImageModule ...@@ -43,7 +43,7 @@ class ImageModule
subContent=new SubContent(xmlTemplater.content) subContent=new SubContent(xmlTemplater.content)
.getInnerTag(templaterState) .getInnerTag(templaterState)
.getOuterXml('w:t') .getOuterXml('w:t')
newText=@getImageXml(rId,"description") newText=@getImageXml(rId)
if @options.centered==true if @options.centered==true
subContent=new SubContent(xmlTemplater.content) subContent=new SubContent(xmlTemplater.content)
.getInnerTag(templaterState) .getInnerTag(templaterState)
...@@ -52,13 +52,13 @@ class ImageModule ...@@ -52,13 +52,13 @@ class ImageModule
xmlTemplater.replaceXml(subContent,newText) xmlTemplater.replaceXml(subContent,newText)
null null
getImageXml:(rId,imageDescription="")-> getImageXml:(rId)->
return """ return """
<w:drawing> <w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0"> <wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="1905000" cy="1905000"/> <wp:extent cx="1905000" cy="1905000"/>
<wp:effectExtent l="0" t="0" r="0" b="0"/> <wp:effectExtent l="0" t="0" r="0" b="0"/>
<wp:docPr id="2" name="Image 2" descr="#{imageDescription}"/> <wp:docPr id="2" name="Image 2" descr="image"/>
<wp:cNvGraphicFramePr> <wp:cNvGraphicFramePr>
<a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/> <a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>
</wp:cNvGraphicFramePr> </wp:cNvGraphicFramePr>
...@@ -66,7 +66,7 @@ class ImageModule ...@@ -66,7 +66,7 @@ class ImageModule
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture"> <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"> <pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr> <pic:nvPicPr>
<pic:cNvPr id="0" name="Picture 1" descr="#{imageDescription}"/> <pic:cNvPr id="0" name="Picture 1" descr="image"/>
<pic:cNvPicPr> <pic:cNvPicPr>
<a:picLocks noChangeAspect="1" noChangeArrowheads="1"/> <a:picLocks noChangeAspect="1" noChangeArrowheads="1"/>
</pic:cNvPicPr> </pic:cNvPicPr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment