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 +1 -1
- data/VERSION +1 -1
- data/lib/haml/html.rb +1 -4
- data/test/haml/html2haml_test.rb +9 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.80
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
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
|
data/test/haml/html2haml_test.rb
CHANGED
@@ -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 = {})
|