cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unintended line breaks when using code samples

brunomulinari1
Participant
0 Kudos
1,204

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?

Accepted Solutions (1)

Accepted Solutions (1)

AnnePetteroe
Community Manager
Community Manager

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

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

Answers (2)

Answers (2)

AnnePetteroe
Community Manager
Community Manager

@brunomulinari1 @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)
brunomulinari1
Participant
0 Kudos

Thank you, @Sandra_Rossi.

I did search before posting, but didn't find the posts you linked. Good to know they're aware, even though the posts you linked are a year old at this point and the issue still persists.

Ask a Question