zeldigas / text2confl

Publisher of documents to confluence
Apache License 2.0
12 stars 2 forks source link

Adjust paragraph conversion in asciidoc to remove line breaks #73

Closed zeldigas closed 1 year ago

zeldigas commented 1 year ago

Asciidoc by default preservers line breaks in paragraphs. While this works fine in confluence server, for confluence cloud it leads to bad formatting due to css styles applied by defaunt - they force preserving line breaks.

This issue also exists in confluence publisher: https://github.com/confluence-publisher/confluence-publisher/issues/357

According to asciidoc maintainers this is done by intention and the proper way of fixing this - do in custom converter that needs this. See discussion in zulip chat of asciidoc.

Tech details

Looks like solution as simple as massaging content string in paragraph block by replacing new lines with one space