File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ def render_list_data()
397
397
398
398
common = 0
399
399
( 0 ..last . length - 1 ) . each do |i |
400
- if last [ i ] == pieces [ i ]
400
+ if list_tag_for ( last [ i ] ) == list_tag_for ( pieces [ i ] )
401
401
common += 1
402
402
else
403
403
break
@@ -412,7 +412,7 @@ def render_list_data()
412
412
end
413
413
if open == '' && pieces != ''
414
414
if last != ''
415
- ret << "</#{ list_inner_tag_for ( pieces [ -1 , 1 ] ) } >"
415
+ ret << "</#{ list_inner_tag_for ( last [ -1 , 1 ] ) } >"
416
416
end
417
417
ret << "<#{ list_inner_tag_for ( pieces [ -1 , 1 ] ) } >"
418
418
end
Original file line number Diff line number Diff line change @@ -379,6 +379,13 @@ class WikiClothTest < Test::Unit::TestCase
379
379
assert_equal count . to_s , "6"
380
380
end
381
381
382
+ test "definition lists" do
383
+ wiki = WikiParser . new ( :data => ";definition term\n :definition data" )
384
+ data = wiki . to_html
385
+ puts data
386
+ assert data . include? ( "<dl><dt>definition term</dt><dd>definition data</dd></dl>" )
387
+ end
388
+
382
389
test "noinclude and includeonly tags" do
383
390
wiki = WikiParser . new ( :data => "<noinclude>main page</noinclude><includeonly>never seen</includeonly>{{noinclude}}\n " )
384
391
data = wiki . to_html
You can’t perform that action at this time.
0 commit comments