class RDoc::Markup::ToHtmlSnippet

def list_item_start(list_item, list_type)

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 << " &mdash; " 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