Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bookgen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down