Permalink
Browse files

fix-regression: missing '\n' after join

  • Loading branch information...
1 parent 1323ae2 commit bbb4621893e4e1c3748d34ee8012198f348ed885 @thomaspierson committed Mar 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 css2less.rb
View
@@ -68,7 +68,7 @@ def render_less(tree=nil, indent=0)
@less = @less + ' ' * indent + element + " {\n"
style = children.delete(:style)
if style
- @less = @less + style.split(';').map { |s| s.strip }.reject { |s| s.empty? }.map { |s| ' ' * (indent+4) + s + ";" }.join("\n")
+ @less = @less + style.split(';').map { |s| s.strip }.reject { |s| s.empty? }.map { |s| ' ' * (indent+4) + s + ";" }.join("\n") + "\n"
end
render_less(children, indent + 4)
@less = @less + ' ' * indent + "}\n"

0 comments on commit bbb4621

Please sign in to comment.