New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publishToConfluence removes all linebreaks from code #1253
Comments
Thanks for reporting this. Unfortunately I cannot reproduce it. Are you on Confluence Cloud or server? If Server which version do you run? |
Confluence Server 8.22.6 |
@tkleiber are you sure, i can only find Jira Software releases that match this version. https://confluence.atlassian.com/display/DOC/Confluence+8.6+Release+Notes |
Sorry, my fault. This was the JIRA version. |
@tkleiber did you upgrade your confluence meanwhile, and does the issue still persist? |
Tested both on Confluence Version 7.19.16 (Server) and 8.5.3 (Data Center). Issue is reproducible on docToolchain 3.0.2 and 3.1.2. |
Thanks I keep trying to investigate, although it's hard without access to a Server instance. But actually you provided good hints 👍 |
We have the same problem on our on-premise Confluence server 8.6.1 We are using doctoolchain 3.1.2. If subpagesForSections = 1 all source code blocks are published with the right line breaks. After switch to subpagesForSections = 2 all source code blocks are now OneLiner (all line breaks are removed), Going back to subpagesForSections = 1 restores the line breaks (and we must delete all the ghost subpages). |
We need subpagesForSections = 2. Maybe the issue is related to the changes for my issue #402? |
Awesome thanks the last hint was the missing part and I could now reproduce and locate the error in rewriteCodeBlocks. However the bug seems not to be trivial (after first investigations) and I need some time to come up with a fix... |
Describe the bug
When I have multiline code snippets, publishToConfluence removes all linebreaks from code, the html file does have have all of it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Confluence should show all lines of code separately instead of 1 concatenated line.
Screenshots
generated html file:
exported to confluence:
Configuration
The text was updated successfully, but these errors were encountered: