Method: IsoDoc::WordFunction::Postprocess#table_note_cleanup

Defined in:
lib/isodoc/word_function/postprocess.rb

#table_note_cleanup(docxml) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/isodoc/word_function/postprocess.rb', line 23

def table_note_cleanup(docxml)
  super
  # preempt html2doc putting MsoNormal there
  docxml.xpath("//p[not(self::*[@class])][ancestor::*[@class = 'Note']]")
    .each do |p|
    p["class"] = "Note"
  end
end