haml-edge 3.1.35 → 3.1.36

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
- 3.1.35
1
+ 3.1.36
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.35
1
+ 3.1.36
data/lib/haml/html.rb CHANGED
@@ -221,7 +221,7 @@ module Haml
221
221
  if content.include?("\n")
222
222
  "#{tabulate(tabs)}/#{condition}\n#{parse_text(content, tabs + 1)}"
223
223
  else
224
- "#{tabulate(tabs)}/#{condition} #{content.strip}"
224
+ "#{tabulate(tabs)}/#{condition} #{content.strip}\n"
225
225
  end
226
226
  end
227
227
  end
@@ -86,6 +86,13 @@ HTML
86
86
 
87
87
  def test_inline_comment
88
88
  assert_equal("/ foo", render("<!-- foo -->"))
89
+ assert_equal(<<HAML.strip, render(<<HTML))
90
+ / foo
91
+ %p bar
92
+ HAML
93
+ <!-- foo -->
94
+ <p>bar</p>
95
+ HTML
89
96
  end
90
97
 
91
98
  def test_non_inline_comment
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: 3.1.35
4
+ version: 3.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-06-06 00:00:00 -04:00
14
+ date: 2010-06-07 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency