Commit c7d0b0aa by Edgar Hipp

syntax change for SubContent calculation

parent f75709b6
......@@ -40,10 +40,14 @@ class ImageModule
.addImageRels(@getNextImageName(),imgData)
if @options.centered==false
subContent=new SubContent(xmlTemplater.content).getInnerTag(templaterState).getOuterXml('w:t')
subContent=new SubContent(xmlTemplater.content)
.getInnerTag(templaterState)
.getOuterXml('w:t')
newText=@getImageXml(rId,"description")
if @options.centered==true
subContent=new SubContent(xmlTemplater.content).getInnerTag(templaterState).getOuterXml('w:p')
subContent=new SubContent(xmlTemplater.content)
.getInnerTag(templaterState)
.getOuterXml('w:p')
newText=@getImageXmlCentered(rId)
xmlTemplater.replaceXml(subContent,newText)
......
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