Method: Html2Doc#lists
- Defined in:
- lib/html2doc/lists.rb
#lists(docxml, liststyles) ⇒ Object
102 103 104 105 106 107 108 109 110 |
# File 'lib/html2doc/lists.rb', line 102 def lists(docxml, liststyles) return if liststyles.nil? @listnumber = 0 liststyles.each_key { |k| lists1(docxml, liststyles, k) } lists_unstyled(docxml, liststyles) liststyles.has_key?(:ul) and docxml.xpath("//ul").each { |u| list2para(u) } liststyles.has_key?(:ol) and docxml.xpath("//ol").each { |u| list2para(u) } end |