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:
parent
279f4da06b
commit
2a2b2a987d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue