Is there any way to preserve white space in code blocks? | Community
Skip to main content
Answered

Is there any way to preserve white space in code blocks?

  • January 25, 2022
  • 1 reply
  • 34 views

I've created a bunch of code blocks in my help article with carefully formatted whitespace. When I save the article the whitespace is stripped. I'm talking specifically about whitespace to the left of content.

 

This:

" some-command"

Becomes:

some-command

 

I had to quote the first example because the help center does the same snipping...

When I edit the article the whitespace is back! How can I keep it in place for viewers of the article?

Best answer by Aparna

Hey @frans​ ! Looks like a limitation on our end. But we can open up a bug issue for you, if you could open a conversation with the support team from Messenger in your workspace.

1 reply

Forum|alt.badge.img+5
  • Employee
  • Answer
  • January 27, 2022

Hey @frans​ ! Looks like a limitation on our end. But we can open up a bug issue for you, if you could open a conversation with the support team from Messenger in your workspace.