Sha256: b191ae5fb515a08a3f13b72230da86d0a350220603b6754b3c26c54a8cffa422

Contents?: true

Size: 920 Bytes

Versions: 6

Compression:

Stored size: 920 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/sectionsplit"
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
      "_htmlimages"
    end

    def initialize(options)
      @format = :html
      @suffix = "html"
      super
    end

    def convert(filename, file = nil, debug = false, output_filename = nil)
      @sectionsplit and
        return sectionsplit_convert(filename, file, debug, output_filename)

      ret = super
      Dir.exists?(tmpimagedir) and Dir["#{tmpimagedir}/*"].empty? and
        FileUtils.rm_r tmpimagedir
      ret
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
isodoc-1.7.1 lib/isodoc/html_convert.rb
isodoc-1.7.0 lib/isodoc/html_convert.rb
isodoc-1.6.7.1 lib/isodoc/html_convert.rb
isodoc-1.6.7 lib/isodoc/html_convert.rb
isodoc-1.6.6 lib/isodoc/html_convert.rb
isodoc-1.6.5 lib/isodoc/html_convert.rb