• I have a problem where the Visual editor seems to be stripping leading whitespace any time I change from HTML to Visual. Is there a way to disable this? It is extremely hard to deal with as a decent sized chunk of my blog posts will have preformatted code that I do not want to have trimmed up.

    How to reproduce?

    • Click create new post
    • Click HTML tab
    • Type code
    • Publish post, verify code stays formatted correctly
    • Click edit post
    • Verify code stays formatted in HTML tab
    • Click Visual tab, note that code looks to be unformatted (makes sense since blank spaces are not rendered as HTML)
    • Click HTML tab, and verify that all leading whitespace has been trimmed
  • The topic ‘Leading whitespace stripped in editor?’ is closed to new replies.