mirror of https://github.com/captn3m0/muse-dl.git
fix add-bookmark failures b/c extra newlines in chapter title
This commit is contained in:
parent
d52b06377d
commit
cc07096191
|
@ -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…
Reference in New Issue