Method: IsoDoc::WordFunction::Postprocess#word_intro

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

#word_intro(docxml, level) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/isodoc/word_function/postprocess_cover.rb', line 28

def word_intro(docxml, level)
  ins = docxml.at('//div[@class="WordSection2"]') or return
  intro = insert_toc(File.read(@wordintropage, encoding: "UTF-8"),
                     docxml, level)
  intro = populate_template(intro, :word)
  introxml = to_word_xhtml_fragment(intro)
  ins.add_first_child introxml.to_xml(encoding: "US-ASCII")
end