Sha256: f34730c64874169cab48f8399ba2c107564f4630ea8a820adfecff32a7f05d88

Contents?: true

Size: 796 Bytes

Versions: 12

Compression:

Stored size: 796 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.exists?(tmpimagedir) and Dir["#{tmpimagedir}/*"].empty? and
        FileUtils.rm_r tmpimagedir
      ret
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
isodoc-2.0.6 lib/isodoc/html_convert.rb
isodoc-2.0.5.3 lib/isodoc/html_convert.rb
isodoc-2.0.5.2 lib/isodoc/html_convert.rb
isodoc-2.0.5.1 lib/isodoc/html_convert.rb
isodoc-2.0.5 lib/isodoc/html_convert.rb
isodoc-2.0.4 lib/isodoc/html_convert.rb
isodoc-2.0.3 lib/isodoc/html_convert.rb
isodoc-2.0.2 lib/isodoc/html_convert.rb
isodoc-2.0.1 lib/isodoc/html_convert.rb
isodoc-2.0.0.1 lib/isodoc/html_convert.rb
isodoc-2.0.0 lib/isodoc/html_convert.rb
isodoc-1.8.4 lib/isodoc/html_convert.rb