lib/isodoc/function/cleanup.rb in isodoc-1.7.7 vs lib/isodoc/function/cleanup.rb in isodoc-1.8.0
- old
+ new
@@ -163,9 +163,13 @@
a.name = "div"
a["class"] = "TableFootnote"
t << a.remove
end
end
+ table_footnote_cleanup_propagate(docxml)
+ end
+
+ def table_footnote_cleanup_propagate(docxml)
docxml.xpath("//p[not(self::*[@class])]"\
"[ancestor::*[@class = 'TableFootnote']]").each do |p|
p["class"] = "TableFootnote"
end
end