Method: IsoDoc::WordFunction::Postprocess#word_remove_empty_toc

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

#word_remove_empty_toc(docxml) ⇒ Object



71
72
73
74
# File 'lib/isodoc/word_function/postprocess.rb', line 71

def word_remove_empty_toc(docxml)
  docxml.at("//div[@class = 'TOC']//p[@class = 'MsoToc1']") and return
  remove_toc_div(docxml)
end