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 following

    This 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
    ie

    This 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/Fy21iTUj

    We take a look at what is the problem.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.