lib/isodoc/function/utils.rb in isodoc-1.5.5 vs lib/isodoc/function/utils.rb in isodoc-1.6.0

- old
+ new

@@ -121,9 +121,10 @@ h = h.to_s.gsub(%r{<br\s*/>}, ' ').gsub(/<\/?h[123456][^>]*>/, '') .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 == 'img' x.remove if x.name == 'span' && x['class'] == 'MsoCommentReference' 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