lib/isodoc/function/cleanup.rb in isodoc-2.4.5 vs lib/isodoc/function/cleanup.rb in isodoc-2.5.0

- old
+ new

@@ -86,11 +86,11 @@ end dl end FIGURE_WITH_FOOTNOTES = - "//div[@class = 'figure'][descendant::aside]"\ + "//div[@class = 'figure'][descendant::aside]" \ "[not(descendant::div[@class = 'figure'])]".freeze def figure_aside_process(elem, aside, key) # get rid of footnote link, it is in diagram elem&.at("./a[@class='TableFootnoteRef']")&.remove @@ -157,11 +157,11 @@ end table_footnote_cleanup_propagate(docxml) end def table_footnote_cleanup_propagate(docxml) - docxml.xpath("//p[not(self::*[@class])]"\ + docxml.xpath("//p[not(self::*[@class])]" \ "[ancestor::*[@class = 'TableFootnote']]").each do |p| p["class"] = "TableFootnote" end end @@ -192,10 +192,10 @@ tfoot.add_child("<tr><td colspan='#{cols}' style='#{style}'/></tr>") tfoot.xpath(".//td").last end def table_note_cleanup(docxml) - docxml.xpath("//table[div[@class = 'Note' or "\ + docxml.xpath("//table[div[@class = 'Note' or " \ "@class = 'TableFootnote']]").each do |t| tfoot = table_get_or_make_tfoot(t) insert_here = new_fullcolspan_row(t, tfoot) t.xpath("div[@class = 'Note' or @class = 'TableFootnote']") .each do |d|