AzureDevOps.WikiPDFExport icon indicating copy to clipboard operation
AzureDevOps.WikiPDFExport copied to clipboard

No linebreaks added on crlf

Open marcelslats-g4s opened this issue 3 years ago • 2 comments

Hello,

I'm experimenting with the WikiPdfExport and I'm running into an issue. I generate a releasenote using Richard Fennells 'Generate Release Notes'. This generates an .md with at the beginning the following:

image

When I export this to a Pdf using the WikiPDFExport tool (on a windows machine), the headers are not on new lines. When I run the tool in debug, I see that the headers are wrapped in a <p> without <br />.

image

Only when I add 2 spaces in front of the crlf, a <br /> is added. So after Release-40 there is no break, after (GMT+02:00) there is one. This results in this pdf:

image

Is this by design or is this a bug in the html engine? How (except for adding 2 spaces) can I fix this or workaround this?

marcelslats-g4s avatar Jun 14 '22 06:06 marcelslats-g4s

If I see that correctly: if you need a line break than you need to add two trailing spaces at the end of the line, then it should wrap accordingly. https://www.markdownguide.org/basic-syntax/#line-breaks

MaxMelcher avatar Jul 18 '22 13:07 MaxMelcher

Okay, so it is by design. Thanks for the link...

marcelslats-g4s avatar Jul 18 '22 13:07 marcelslats-g4s

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 20 '22 15:09 stale[bot]