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 CHANGED
@@ -1 +1 @@
1
- 2.3.5
1
+ 2.3.6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.5
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
 
@@ -793,8 +793,14 @@ SASS
793
793
  def test_empty_comment
794
794
  assert_equal(<<CSS, render(<<SASS))
795
795
  /* */
796
+ a {
797
+ /* */
798
+ b: c; }
796
799
  CSS
797
800
  /*
801
+ a
802
+ /*
803
+ b: c
798
804
  SASS
799
805
  end
800
806
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.5
4
+ version: 2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum