haml-edge 2.3.5 → 2.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/sass/tree/comment_node.rb +2 -2
- data/test/sass/engine_test.rb +6 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.6
|
@@ -49,14 +49,14 @@ module Sass::Tree
|
|
49
49
|
# @see #invisible?
|
50
50
|
def to_s(tabs = 0, _ = nil)
|
51
51
|
return if invisible?
|
52
|
+
spaces = ' ' * (tabs - 1)
|
52
53
|
|
53
54
|
content = (value.split("\n") + lines.map {|l| l.text})
|
54
|
-
return "/* */" if content.empty?
|
55
|
+
return spaces + "/* */" if content.empty?
|
55
56
|
content.map! {|l| (l.empty? ? "" : " ") + l}
|
56
57
|
content.first.gsub!(/^ /, '')
|
57
58
|
content.last.gsub!(%r{ ?\*/ *$}, '')
|
58
59
|
|
59
|
-
spaces = ' ' * (tabs - 1)
|
60
60
|
spaces + "/* " + content.join(style == :compact ? '' : "\n#{spaces} *") + " */"
|
61
61
|
end
|
62
62
|
|
data/test/sass/engine_test.rb
CHANGED