Method: IsoDoc::Function::Cleanup#table_footnote_cleanup
- Defined in:
- lib/isodoc/function/cleanup.rb
#table_footnote_cleanup(docxml) ⇒ Object
preempt html2doc putting MsoNormal under TableFootnote class
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/isodoc/function/cleanup.rb', line 114 def table_footnote_cleanup(docxml) docxml.xpath("//table[descendant::aside]").each do |t| t.xpath(".//aside").each do |a| merge_fnref_into_fn_text(a) a.name = "div" a["class"] = "TableFootnote" t << a.remove end end table_footnote_cleanup_propagate(docxml) end |