Trim chapter titles to ensure bookmarks are valid in PDF (#11)

This commit is contained in:
Prad Nelluru 2020-04-19 16:33:30 -04:00 committed by GitHub
parent d52b06377d
commit 9659c0ef5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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