From 9fd62c9bd775070074adc92ddddeaafb92778fa3 Mon Sep 17 00:00:00 2001 From: Riccardo Degan Date: Fri, 15 Mar 2019 17:38:14 +0100 Subject: [PATCH] Fixed: Parsing markdown... --no-wrap has been removed. Use --wrap=none instead --- bookgen.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookgen.rb b/bookgen.rb index 691378e..e898ba7 100755 --- a/bookgen.rb +++ b/bookgen.rb @@ -194,7 +194,7 @@ def post_pandoc(string, config, isprint) ### Output a PDF suitable for a 8.5x11 PDF isprint = false print "\tParsing markdown... " - latex = IO.popen('pandoc -p --no-wrap -f markdown -t latex', 'w+') do |pipe| + latex = IO.popen('pandoc -p --wrap=none -f markdown -t latex', 'w+') do |pipe| pipe.write(pre_pandoc(markdown, config, isprint)) pipe.close_write post_pandoc(pipe.read, config, isprint) @@ -229,10 +229,10 @@ def post_pandoc(string, config, isprint) puts "done" end - ### Output a PDF suitable for a 6x9 print book + ### Output a PDF suitable for a 6x9 print book isprint = true print "\tParsing markdown for print... " - latex = IO.popen('pandoc -p --no-wrap -f markdown -t latex', 'w+') do |pipe| + latex = IO.popen('pandoc -p --wrap=none -f markdown -t latex', 'w+') do |pipe| pipe.write(pre_pandoc(markdown, config, isprint)) pipe.close_write post_pandoc(pipe.read, config, isprint)