Clean the comment before setting it on constants.
This commit is contained in:
parent
2a8ba797a0
commit
8ee939a52c
@ -121,7 +121,7 @@ def constants(item)
|
|||||||
comment = nil
|
comment = nil
|
||||||
sass_tree.children.each do |child|
|
sass_tree.children.each do |child|
|
||||||
if child.is_a?(Sass::Tree::VariableNode)
|
if child.is_a?(Sass::Tree::VariableNode)
|
||||||
child.comment = comment
|
child.comment = comment && Sass::Tree::CommentNode.clean(comment)
|
||||||
comment = nil
|
comment = nil
|
||||||
constants << child
|
constants << child
|
||||||
elsif child.is_a?(Sass::Tree::CommentNode)
|
elsif child.is_a?(Sass::Tree::CommentNode)
|
||||||
|
Loading…
Reference in New Issue
Block a user