lib/isodoc/function/utils.rb in isodoc-1.0.27 vs lib/isodoc/function/utils.rb in isodoc-1.0.28

- old
+ new

@@ -119,10 +119,10 @@ gsub(/<\/?b[^>]*>/, "") h1 = to_xhtml_fragment(h.dup) h1.traverse do |x| x.replace(" ") if x.name == "span" && /mso-tab-count/.match(x["style"]) x.remove if x.name == "span" && x["class"] == "MsoCommentReference" - x.remove if x.name == "a" && x["epub:type"] == "footnote" + x.remove if x.name == "a" && x["class"] == "FootnoteRef" x.remove if x.name == "span" && /mso-bookmark/.match(x["style"]) x.replace(x.children) if x.name == "a" end from_xhtml(h1) end