Method: IsoDoc::WordFunction::Postprocess#toWord
- Defined in:
- lib/isodoc/word_function/postprocess.rb
#toWord(result, filename, dir, header) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/isodoc/word_function/postprocess.rb', line 24 def toWord(result, filename, dir, header) Html2Doc.new( filename: filename, imagedir: @localdir, stylesheet: @wordstylesheet&.path, header_file: header&.path, dir: dir, asciimathdelims: [@openmathdelim, @closemathdelim], liststyles: { ul: @ulstyle, ol: @olstyle } ).process(result) header&.unlink @wordstylesheet.unlink if @wordstylesheet.is_a?(Tempfile) end |