Skip to content

Commit

Permalink
Correção pra funcionar no Windows
Browse files Browse the repository at this point in the history
No Windows não existe /dev/nul, devemos utilizar File::NULL para portabilidade

closes #96
  • Loading branch information
edusantana committed Dec 19, 2016
1 parent 4a11509 commit d799927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/limarka/conversor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def convert()
def compila
Dir.chdir(options[:output_dir]) do
basename = File.basename(texto_tex_file, '.tex')
system "latexmk --quiet --xelatex -f #{basename}", :out=>"/dev/null", :err=>"/dev/null"
system "latexmk --quiet --xelatex -f #{basename}", :out=>File::NULL, :err=>File::NULL
system "pdftotext -enc UTF-8 #{basename}.pdf"
File.open("#{basename}.txt", 'r') {|f| @txt = f.read}
end
Expand Down

0 comments on commit d799927

Please sign in to comment.