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

[Sass] [convert] Make sure mixins without args convert without ().

This commit is contained in:
Nathan Weizenbaum 2010-03-29 16:09:00 -07:00
parent 279f4da06b
commit 2a2b2a987d

View file

@ -23,7 +23,7 @@ module Sass::Tree
protected
def to_src(tabs, opts, fmt)
args = '(' + @args.map {|a| a.to_sass}.join(", ") + ')'
args = '(' + @args.map {|a| a.to_sass}.join(", ") + ')' unless @args.empty?
"#{' ' * tabs}#{fmt == :sass ? '+' : '@include '}#{@name}#{args}#{semi fmt}\n"
end