cancel
Showing results for 
Search instead for 
Did you mean: 

Unintended line breaks when using code samples

brunomulinari
Participant
0 Kudos
268

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 @Sandra_Rossi Just to confirm quickly, the fix was released last week 🙂 

Sandra_Rossi
Active Contributor
0 Kudos
Nice, thank you! (I'll check whenever I can)