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

Version Path
isodoc-2.12.7 lib/isodoc/html_convert.rb
isodoc-2.12.6 lib/isodoc/html_convert.rb
isodoc-2.12.5 lib/isodoc/html_convert.rb
isodoc-2.12.4 lib/isodoc/html_convert.rb
isodoc-2.12.3 lib/isodoc/html_convert.rb
isodoc-2.12.2 lib/isodoc/html_convert.rb
isodoc-2.12.1 lib/isodoc/html_convert.rb
isodoc-2.12.0 lib/isodoc/html_convert.rb
isodoc-2.11.4 lib/isodoc/html_convert.rb
isodoc-2.11.3 lib/isodoc/html_convert.rb
isodoc-2.11.2 lib/isodoc/html_convert.rb
isodoc-2.11.1 lib/isodoc/html_convert.rb
isodoc-2.11.0 lib/isodoc/html_convert.rb
isodoc-2.10.7 lib/isodoc/html_convert.rb
isodoc-2.10.6 lib/isodoc/html_convert.rb
isodoc-2.10.5 lib/isodoc/html_convert.rb
isodoc-2.10.4 lib/isodoc/html_convert.rb
isodoc-2.10.3 lib/isodoc/html_convert.rb
isodoc-2.10.2 lib/isodoc/html_convert.rb
isodoc-2.10.1 lib/isodoc/html_convert.rb