Method: IsoDoc::WordFunction::Postprocess#word_cover
- Defined in:
- lib/isodoc/word_function/postprocess.rb
#word_cover(docxml) ⇒ Object
153 154 155 156 157 158 159 |
# File 'lib/isodoc/word_function/postprocess.rb', line 153 def word_cover(docxml) cover = File.read(@wordcoverpage, encoding: "UTF-8") cover = populate_template(cover, :word) coverxml = to_word_xhtml_fragment(cover) docxml.at('//div[@class="WordSection1"]').children.first.previous = coverxml.to_xml(encoding: "US-ASCII") end |