MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
186 stars 62 forks source link

No linebreaks added on crlf #110

Closed marcelslats-g4s closed 1 year ago

marcelslats-g4s commented 2 years ago

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?

MaxMelcher commented 1 year ago

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

marcelslats-g4s commented 1 year ago

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

stale[bot] commented 1 year ago

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.