stonean/slim — Issue #236: Inconsistent indenting of IE conditional comments
Author: MortyEU
Created: 2012-02-26 12:30:03+00:00
State: open

This is a lesser issue. Seen on Windows 7, Ruby 1.9.3-p0, Slim 1.1 installed from RubyGems.

When pretty-printing Slim outputs gorgeous indented HTML markup, but the Internet Explorer conditional comments are handled inconsistently.

**Given the input:**

doctype 5
/[ if IE ]
html

and the command line

slimrb --pretty

I would expect the following output:

**What I got was:**

**PS:** When the conditional comment clearly is the "child" of another element, behaviour seems different. I.e. the following code:

doctype 5
html
/[ if IE ]

produces the correct, expected output:

**PPS:** I'm completely new to Slim and Ruby in general. This could affect other things than conditional comments, I haven't been able to test for that.