Support » Fixing WordPress » Way to strip spaces & tabs prefixing all lines?

  • jumbo


    WordPress inserts much indentation (tabs & spaces) throughout the outputted html. Is there anyway to globally strip out all preceding spaces & tabs from the begining and end of every line?
    I know this could be done within the index.php, but the indentation is useful when editing the file.

Viewing 1 replies (of 1 total)
  • retardedjimmy


    I’m guessing this is because of


    • tags, which WP uses in abundance. Easiest way might be putting some extra css in your wp-layout.css:
      ul, li {
      line-style: none;
      margin: 0;
      padding: 0;

      Scroll through the stylesheet, also, because there’s lots and lots of ul and li formatting in there. Delete what you don’t want (backup, of course, just to make sure), put in the code above, and cascading should take care of the rest.

    Viewing 1 replies (of 1 total)
    • The topic ‘Way to strip spaces & tabs prefixing all lines?’ is closed to new replies.