cancel
Showing results for 
Search instead for 
Did you mean: 

Unintended line breaks when using code samples

brunomulinari
Participant
0 Kudos
269

For reference, this is my blog post. I'm having a hard time formatting my post when it comes to the code samples. For every code sample block, the platform seems to add unintended line breaks before and after the code block, which only appear when previewing the post or publishing it, and not while editing it. It might seem minor, but it's really annoying since the spacing between the text and the code blocks is way too big and looks bad.

Even when editing the HTML directly and removing the <p>&nbsp;</p> it adds by itself for every line break, they're added back once you save or preview.

Any way to fix this?

View Entire Topic
AnnePetteroe
Community Manager
Community Manager

@brunomulinari This will be fixed with the upcoming release currently scheduled for next week 🎉

brunomulinari
Participant
Great to know! Thank you!
Sandra_Rossi
Active Contributor
Great!