1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Haml] Removed trailing whitespace from conditional comment openings.

This commit is contained in:
Norman Clarke 2009-09-15 16:56:28 -03:00 committed by Nathan Weizenbaum
parent 09cda35a99
commit 483e8a56e8
2 changed files with 8 additions and 8 deletions

View file

@ -775,11 +775,11 @@ END
raise SyntaxError.new('Illegal nesting: nesting within a tag that already has content is illegal.', @next_line.index)
end
open = "<!--#{conditional} "
open = "<!--#{conditional}"
# Render it statically if possible
unless line.empty?
return push_text("#{open}#{line} #{conditional ? "<![endif]-->" : "-->"}")
return push_text("#{open} #{line} #{conditional ? "<![endif]-->" : "-->"}")
end
push_text(open, 1)