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

pull/13/head
Prad Nelluru 3 years ago committed by GitHub
parent d52b06377d
commit 9659c0ef5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/fetch.cr

@ -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

Loading…
Cancel
Save