Sha256: 09eb2b4743ae3cf6b3246cfc8ffe9dbf828682e028fca122a3d23a2f58b75042
Contents?: true
Size: 350 Bytes
Versions: 5
Compression:
Stored size: 350 Bytes
Contents
module Kitabu class Exporter class Txt < Base def export spawn_command ["html2text", "-style", "pretty", "-nobs", "-o", txt_file.to_s, html_file.to_s] end def html_file root_dir.join("output/#{name}.html") end def txt_file root_dir.join("output/#{name}.txt") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems