Method: IsoDoc::WordFunction::Body#figure_aside_process
- Defined in:
- lib/isodoc/word_function/body.rb
#figure_aside_process(fig, aside, key) ⇒ Object
122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/isodoc/word_function/body.rb', line 122 def figure_aside_process(fig, aside, key) # get rid of footnote link, it is in diagram fig&.at("./a[@class='TableFootnoteRef']")&.remove fnref = fig.at(".//span[@class='TableFootnoteRef']/..") tr = key.add_child("<tr></tr>").first dt = tr.add_child("<td valign='top' align='left'></td>").first dd = tr.add_child("<td valign='top'></td>").first fnref.parent = dt aside.xpath(".//p").each do |a| a.delete("class") a.parent = dd end end |