fix add-bookmark failures b/c extra newlines in chapter title

This commit is contained in:
Prad Nelluru 2020-04-18 23:41:50 -04:00
parent d52b06377d
commit cc07096191
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module Muse::Dl
if add_bookmark
# Run pdftk and add the bookmark to the file
pdftk.add_bookmark tmp_pdf_file, chapter_title
pdftk.add_bookmark tmp_pdf_file, chapter_title.strip()
end
# Now we can move the file to the proper PDF filename