Docx Formatting error when using static bullet points with handlebars
-
Am creating developing some reports using a docx template.
And found a formatting issue.
My data is
{
"name":"Bob"
}My template in word has the following
This is a test {{name}} here we go
- Test 1
- Test 2
- Test 3
This is another test {{name}} can you see me here.
When i run the report.
i get the followingThis is a test Bob
Thats basically it..somehow it misses the text in the bullet points and the text after the {{name}}, and the next paragraph after the bullet points?!
If i do in my template
This is a test {{name}} here we go {{#if true}}{{/if}}
- Test 1
- Test 2
- Test 3
This is another test {{name}} can you see me here.
Then i get the expected result
ieThis is a test Bob here we go
- Test 1
- Test 2
- Test 3
This is another test Bob can you see me here
So something is going bad with the formatting.
-
Thank you. I replicated the issue in playground.
https://playground.jsreport.net/w/anon/Fy21iTUjWe take a look at what is the problem.
-
FYI this problem was fixed on
jsreport-docx
2.4.0
, details about the changes on this release here