Wrong indention of IE conditional comments (2 posts)

  1. Volker E.
    Posted 3 years ago #

    WP-Beautifier would be the perfect addition to my favorite plugins collection, but it does wrong indentation of IE conditional comments like f.e.:

    <!--[if lt IE 8 ]><html xmlns="http://www.w3.org/1999/xhtml" lang="de-AT" class="no-js ie7"><![endif]-->
    <!--[if IE 8 ]><html xmlns="http://www.w3.org/1999/xhtml" lang="de-AT" class="no-js ie8"><![endif]-->
    <!--[if IE 9 ]><html xmlns="http://www.w3.org/1999/xhtml" lang="de-AT" class="no-js ie9"><![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->
    <html xmlns="http://www.w3.org/1999/xhtml" lang="de-AT" class="no-js">

    It indents in v 1.3.1 every single line, so that the last <html> tag gets indented by 4 tabs (or whatever rule you've given at indentation settings).

    Best & thanks,
    Volker E.


  2. Fill in the Blank
    Posted 2 years ago #

    I need this as well... guess I could mod the plugin myself, but I don't want to update and it crash mys tuff... I am forgetful

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Beautifier
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic