haml-edge 2.3.70 → 2.3.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/haml/precompiler.rb +1 -7
- data/test/haml/engine_test.rb +0 -12
- data/test/haml/results/tag_parsing.xhtml +1 -1
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.71
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.71
|
data/lib/haml/precompiler.rb
CHANGED
@@ -488,13 +488,7 @@ END
|
|
488
488
|
attributes['class'] = ""
|
489
489
|
end
|
490
490
|
attributes['class'] += property
|
491
|
-
when '#'
|
492
|
-
if attributes['id']
|
493
|
-
attributes['id'] += "_"
|
494
|
-
else
|
495
|
-
attributes['id'] = ""
|
496
|
-
end
|
497
|
-
attributes['id'] += property
|
491
|
+
when '#'; attributes['id'] = property
|
498
492
|
end
|
499
493
|
end
|
500
494
|
attributes
|
data/test/haml/engine_test.rb
CHANGED
@@ -283,18 +283,6 @@ RESULT
|
|
283
283
|
SOURCE
|
284
284
|
end
|
285
285
|
|
286
|
-
def test_multiple_ids
|
287
|
-
assert_equal("<p id='bc_ab'></p>\n", render("%p#bc#ab"))
|
288
|
-
assert_equal("<p id='ab_bc'></p>\n", render("%p#ab#bc"))
|
289
|
-
assert_equal("<p id='ab'></p>\n", render("%p(id='bc' id='ab')"))
|
290
|
-
assert_equal("<p id='bc'></p>\n", render("%p(id='ab' id='bc')"))
|
291
|
-
assert_equal("<p id='bc_ab'></p>\n", render("%p#bc(id='ab')"))
|
292
|
-
assert_equal("<p id='ab_bc'></p>\n", render("%p#ab(id='bc')"))
|
293
|
-
assert_equal("<p id='bc_ab'></p>\n", render("%p#bc{:id => 'ab'}"))
|
294
|
-
assert_equal("<p id='ab_bc'></p>\n", render("%p#ab{:id => 'bc'}"))
|
295
|
-
assert_equal("<p id='ab_bc_cd'></p>\n", render("%p#ab{:id => 'bc'}(id='cd')"))
|
296
|
-
end
|
297
|
-
|
298
286
|
# Regression tests
|
299
287
|
|
300
288
|
def test_whitespace_nuke_with_both_newlines
|