lib/kitabu/parser/txt.rb in kitabu-1.0.0.rc1 vs lib/kitabu/parser/txt.rb in kitabu-1.0.0.rc2

- old
+ new

@@ -1,13 +1,9 @@ module Kitabu module Parser class Txt < Base def parse - command = ["html2text", "-style", "pretty", "-o", txt_file.to_s, html_file.to_s] - puts command.join(' ') - - Process.wait Process.spawn(*command) - true + spawn_command ["html2text", "-style", "pretty", "-o", txt_file.to_s, html_file.to_s] end def html_file root_dir.join("output/#{name}.html") end