0
Under review

Line breaks in code style

Richard Sloggett (Support) 7 years ago in Usability & Interface • updated by Sergey Stukov (co-founder) 7 years ago 1
I'm having trouble getting line feeds to work in a section marked with the "code" style. If you use a hard line break, each line is individually wrapped with the dotted style. If you use Shift+enter to enter a soft line break, it looks fine the editor but the code all runs together when you post.

Answer

Answer
Under review
Give us link to the topic with this issue for further investigation.
Answer
Under review
Give us link to the topic with this issue for further investigation.
The existing content is in a private forum, but I'll demonstrate below:
// First line of code - I'll press Enter
// And the second line appears as a separate block
// If I use Shift+Enter, the code appears as separate lines in a single block// but when the comment is posted, it gets merged into a single line.