private Method

ToHtml.list_item_start(am, fragment)

There's no documentation for this item.

Source Code

# File rdoc/markup/simple_markup/to_html.rb, line 246
def list_item_start(am, fragment)
  case fragment.type
  when ListBase::BULLET, ListBase::NUMBER
    annotate("<li>")

  when ListBase::UPPERALPHA
    annotate("<li type=\"A\">")

  when ListBase::LOWERALPHA
    annotate("<li type=\"a\">")

  when ListBase::LABELED
    annotate("<dt>") +
      convert_flow(am.flow(fragment.param)) + 
      annotate("</dt>") +
      annotate("<dd>")

  when ListBase::NOTE
    annotate("<tr>") +
      annotate("<td valign=\"top\">") +
      convert_flow(am.flow(fragment.param)) + 
      annotate("</td>") +
      annotate("<td>")
  else
    raise "Invalid list type"
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.