haml-edge 2.3.79 → 2.3.80

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.79
1
+ 2.3.80
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.79
1
+ 2.3.80
data/lib/haml/html.rb CHANGED
@@ -195,10 +195,7 @@ module Haml
195
195
  end
196
196
 
197
197
  version = " #{version}" if version
198
- if strictness
199
- strictness[0] = strictness[0] - 32
200
- strictness = " #{strictness}"
201
- end
198
+ strictness = " #{strictness.capitalize}" if strictness
202
199
 
203
200
  "#{tabulate(tabs)}!!!#{version}#{strictness}\n"
204
201
  end
@@ -247,6 +247,15 @@ HTML
247
247
  end
248
248
  end
249
249
 
250
+ # Regression Tests
251
+
252
+ def test_xhtml_strict_doctype
253
+ assert_equal('!!! Strict', render(<<HTML))
254
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
255
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
256
+ HTML
257
+ end
258
+
250
259
  protected
251
260
 
252
261
  def render(text, options = {})
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.79
4
+ version: 2.3.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum