Method: IsoDoc::Function::Cleanup#table_note_cleanup

Defined in:
lib/isodoc/function/cleanup.rb

#table_note_cleanup(docxml) ⇒ Object



164
165
166
167
168
169
170
171
172
173
# File 'lib/isodoc/function/cleanup.rb', line 164

def table_note_cleanup(docxml)
  docxml.xpath("//table[dl or #{TABLENOTE_CSS}]").each do |t|
    tfoot = table_get_or_make_tfoot(t)
    insert_here = new_fullcolspan_row(t, tfoot)
    t.xpath("dl | p[@class = 'ListTitle'] | #{TABLENOTE_CSS}")
      .each do |d|
      d.parent = insert_here
    end
  end
end