Skip to content

Commit 1e73d09

Browse files
committed
Merge branch 'master' into 1.x
2 parents 83a8bd6 + 3417d5b commit 1e73d09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

coffee/xmlTemplater.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,11 @@ module.exports=class XmlTemplater #abstract class !!
137137

138138
options=
139139
xmlTagNumber:@templaterState.tagStart.numXmlTag
140+
noStartTag:@templaterState.matches[@templaterState.tagStart.numXmlTag].first?
140141

142+
options.insideValue=newValue
141143
if !@templaterState.matches[@templaterState.tagStart.numXmlTag].first? and !@templaterState.matches[@templaterState.tagStart.numXmlTag].last? #normal case
142144
options.insideValue=leftValue+newValue
143-
else #if the content starts with: {tag</w:t> (when handling recursive cases)
144-
options.insideValue=newValue
145-
options.noStartTag=@templaterState.matches[@templaterState.tagStart.numXmlTag].first?
146145

147146
content= @replaceXmlTag(content,options)
148147

0 commit comments

Comments
 (0)