Line breaks in code style

Avatar
  • updated
  • Under review
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.
Pinned replies
Avatar
Sergey Stukov co-founder
  • Answer
  • Under review
Give us link to the topic with this issue for further investigation.
Avatar
Sergey Stukov co-founder
  • Answer
  • Under review
Give us link to the topic with this issue for further investigation.
Avatar
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.