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:
parent
09cda35a99
commit
483e8a56e8
2 changed files with 8 additions and 8 deletions
|
@ -775,11 +775,11 @@ END
|
||||||
raise SyntaxError.new('Illegal nesting: nesting within a tag that already has content is illegal.', @next_line.index)
|
raise SyntaxError.new('Illegal nesting: nesting within a tag that already has content is illegal.', @next_line.index)
|
||||||
end
|
end
|
||||||
|
|
||||||
open = "<!--#{conditional} "
|
open = "<!--#{conditional}"
|
||||||
|
|
||||||
# Render it statically if possible
|
# Render it statically if possible
|
||||||
unless line.empty?
|
unless line.empty?
|
||||||
return push_text("#{open}#{line} #{conditional ? "<![endif]-->" : "-->"}")
|
return push_text("#{open} #{line} #{conditional ? "<![endif]-->" : "-->"}")
|
||||||
end
|
end
|
||||||
|
|
||||||
push_text(open, 1)
|
push_text(open, 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue