WordPress.org

Support

Support » How-To and Troubleshooting » Way to strip spaces & tabs prefixing all lines?

Way to strip spaces & tabs prefixing all lines?

  • 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

    @retardedjimmy

    I’m guessing this is because of

      and

    • 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.