Method: IsoDoc::Function::Cleanup#figure_aside_process
- Defined in:
- lib/isodoc/function/cleanup.rb
#figure_aside_process(elem, aside, key) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/isodoc/function/cleanup.rb', line 58 def figure_aside_process(elem, aside, key) # get rid of footnote link, it is in diagram elem&.at("./a[@class='TableFootnoteRef']")&.remove fnref = elem.at(".//span[@class='TableFootnoteRef']/..") dt = key.add_child("<dt></dt>").first dd = key.add_child("<dd></dd>").first fnref.parent = dt aside.xpath(".//p").each do |a| a.delete("class") a.parent = dd end end |