Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.3.7
-
None
-
R5.0.0 Sprint 6
-
Description
When iterating, if there are linebreaks between the start of the iteratiton, the iterated content, and the end of the iteration (check the example):
bla bla bla... #{for i=JQLIssuesCount|clause=issuekey = ${ParentIssueKey}}
${JQLIssues[i].DueDate}
#{end} bla bla bla...
the bla bla bla... on the same line as the start of the iteration, as well as the bla bla bla... on the same line as the end of the iteration are not printed on the generated file.
However, if all the iteration is made inline (check the example):
#{for i=JQLIssuesCount|clause=issuekey = ${ParentIssueKey}} bla bla bla... ${dateformat("d MMMM yyyy"):JQLIssues[i].DueDate}#{end} bla bla bla...
all the bla bla bla... text is displayed properly on the generated document.
This happens in all type of iterations (links, comments, etc), and I've attached a Simple template to replicate this problem, as well as a sample generated document.
On more a Complex template with line breaks, this can result on the generated document only displaying an error log.
Using inline iterations on an Edited Complex template, the generated document is correct.