lib/html2doc/lists.rb in html2doc-1.4.2 vs lib/html2doc/lists.rb in html2doc-1.4.2.1

- old
+ new

@@ -56,9 +56,10 @@ list.xpath("./li").each do |l| l.name = "p" l["class"] ||= "MsoListParagraphCxSpMiddle" next unless l.first_element_child&.name == "p" + l["style"] ||= "" l["style"] += (l.first_element_child["style"]&.sub(/mso-list[^;]+;/, "") || "") l.first_element_child.replace(l.first_element_child.children) end list.replace(list.children) end