This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
list_item_start(list_item, list_type)
public
Lists are paragraphs, but notes and labels have a separator
# File lib/rdoc/markup/to_html_snippet.rb, line 142
def list_item_start list_item, list_type
throw :done if @characters >= @character_limit
case list_type
when :BULLET, :LALPHA, :NUMBER, :UALPHA then
"<p>"
when :LABEL, :NOTE then
labels = Array(list_item.label).map do |label|
to_html label
end.join ', '
labels << " — " unless labels.empty?
start = "<p>#{labels}"
@characters += 1 # try to include the label
start
else
raise RDoc::Error, "Invalid list type: #{list_type.inspect}"
end
end