Sha256: b9ba7fcb45af15ca0af116a11ec37e4354621300baae99764d143e3b6fea1c2a
Contents?: true
Size: 795 Bytes
Versions: 88
Compression:
Stored size: 795 Bytes
Contents
require_relative "html_function/comments" require_relative "html_function/footnotes" require_relative "html_function/html" require_relative "html_function/postprocess" require_relative "html_function/form" module IsoDoc class HtmlConvert < ::IsoDoc::Convert include HtmlFunction::Comments include HtmlFunction::Footnotes include HtmlFunction::Form include HtmlFunction::Html def tmpimagedir_suffix "_#{SecureRandom.hex(8)}_htmlimages" end def initialize(options) @format = :html @suffix = "html" super end def convert(filename, file = nil, debug = false, output_filename = nil) ret = super Dir.exist?(tmpimagedir) and Dir["#{tmpimagedir}/*"].empty? and FileUtils.rm_r tmpimagedir ret end end end
Version data entries
88 entries across 88 versions & 1 rubygems