You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When docx documents are generated linebreaks are shown as a new paragraph (despite just being w:cr) when they should not be.
version: pandoc 1.11.1
command:
$ pandoc br-example.md -o test.docx
br-example.md:
Paragraph one line one
Paragraph one line two
Paragraph two
I have taken snippets from the resultant document.xml for the actual/expected.
Actual:
<w:body>
<w:p>
<w:r>
<w:t xml:space="preserve">Paragraph one line one</w:t>
</w:r>
<w:r>
<w:cr />
</w:r>
<w:r>
<w:t xml:space="preserve">Paragraph one line two</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Paragraph two</w:t>
</w:r>
</w:p>
</w:body>
Expected:
<w:body>
<w:p>
<w:r>
<w:t xml:space="preserve">Paragraph one line one</w:t>
<w:br/>
<w:t xml:space="preserve">Paragraph one line two</w:t>
</w:r>
</w:p>
<w:p>
<w:r>
<w:t xml:space="preserve">Paragraph two</w:t>
</w:r>
</w:p>
</w:body>
When rendered the actual result looks almost indistinguishable from a new paragraph and does not achieve the intended look of the linebreak which is achieved by the expected code.
I don't actually know the spec and the resultant code change shown here is based on the way LibreOffice implements linebreaks in it's docx output.
The text was updated successfully, but these errors were encountered:
When docx documents are generated linebreaks are shown as a new paragraph (despite just being w:cr) when they should not be.
version: pandoc 1.11.1
command:
br-example.md:
I have taken snippets from the resultant document.xml for the actual/expected.
Actual:
Expected:
When rendered the actual result looks almost indistinguishable from a new paragraph and does not achieve the intended look of the linebreak which is achieved by the expected code.
I don't actually know the spec and the resultant code change shown here is based on the way LibreOffice implements linebreaks in it's docx output.
The text was updated successfully, but these errors were encountered: