Method: IsoDoc::HtmlFunction::Html#html_toc_init
- Defined in:
- lib/isodoc/html_function/postprocess_cover.rb
#html_toc_init(docxml) ⇒ Object
136 137 138 139 140 141 142 |
# File 'lib/isodoc/html_function/postprocess_cover.rb', line 136 def html_toc_init(docxml) dest = docxml.at("//div[@id = 'toc']") or return if source = docxml.at("//div[@class = 'TOC']") dest << to_xml(source.remove.children) end dest end |