Method: IsoDoc::WordFunction::Postprocess#word_intro
- Defined in:
- lib/isodoc/word_function/postprocess.rb
#word_intro(docxml, level) ⇒ Object
116 117 118 119 120 121 122 |
# File 'lib/isodoc/word_function/postprocess.rb', line 116 def word_intro(docxml, level) intro = insert_toc(File.read(@wordintropage, encoding: "UTF-8"), docxml, level) intro = populate_template(intro, :word) introxml = to_word_xhtml_fragment(intro) docxml.at('//div[@class="WordSection2"]').children.first.previous = introxml.to_xml(encoding: "US-ASCII") end |