method
list_item_start
v1_9_1_378 -
Show latest stable
-
0 notes -
Class: ToHtml
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (9)
- 1_9_3_125 (29)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
list_item_start(am, fragment)
private
Hide source
# File lib/rdoc/markup/to_html.rb, line 361 def list_item_start(am, fragment) case fragment.type when :BULLET, :NUMBER then annotate("<li>") when :UPPERALPHA then annotate("<li type=\"A\">") when :LOWERALPHA then annotate("<li type=\"a\">") when :LABELED then annotate("<dt>") + convert_flow(am.flow(fragment.param)) + annotate("</dt>") + annotate("<dd>") when :NOTE then annotate("<tr>") + annotate("<td valign=\"top\">") + convert_flow(am.flow(fragment.param)) + annotate("</td>") + annotate("<td>") else raise "Invalid list type" end end