Method: IsoDoc::WordFunction::Postprocess#word_intro

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

#word_intro(docxml, level) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/isodoc/word_function/postprocess_cover.rb', line 17

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