Way to strip spaces & tabs prefixing all lines? (2 posts)

  1. jumbo
    Posted 11 years ago #

    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.

  2. retardedjimmy
    Posted 11 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.