WordPress removes leading spaces (3 posts)

  1. woutware
    Posted 7 years ago #

    WordPress is removing leading spaces (at least when switching to full screen and back, and also when saving it seems). The leading spaces should be kept, because when inserting code blocks, the indentation is very important! Without the indentation the code block becomes very hard to read.

    BTW, using the SyntaxHighlighter plugin.



  2. You should be using CSS to indent your code blocks, not spaces. Unless you're talking about INSIDE the code block.

    That is
    This has no indentation

    This is not indented
       This is indented
  3. mazdaspeed
    Posted 7 years ago #

    I've noticed that if you're using your rss feed to publish content on another site, if you have extra spaces, it shows up as invalid characters. So, extra spaces are bad.

Topic Closed

This topic has been closed to new replies.

About this Topic