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

Fix a little Sass parser bug.

This commit is contained in:
Nathan Weizenbaum 2008-12-28 13:32:04 -08:00
parent addaa09a99
commit 52fb797dd8

View file

@ -319,7 +319,7 @@ END
def parse_directive(parent, line, root)
directive, whitespace, value = line.text[1..-1].split(/(\s+)/, 2)
offset = directive.size + whitespace.size + 1
offset = directive.size + whitespace.size + 1 if whitespace
# If value begins with url( or ",
# it's a CSS @import rule and we don't want to touch it.