Method: HTMLParser#do_li
- Defined in:
- lib/web/htmlparser/html-parser.rb
#do_li(attrs) ⇒ Object
233 234 235 236 237 238 239 240 241 242 |
# File 'lib/web/htmlparser/html-parser.rb', line 233 def do_li(attrs) @formatter.end_paragraph(0) if @list_stack && @list_stack.size > 0 dummy, label, counter = top = @list_stack[-1] top[2] = counter = counter+1 else label, counter = '*', 0 end @formatter.add_label_data(label, counter) end |