mirror of https://github.com/captn3m0/muse-dl.git
Trim chapter titles to ensure bookmarks are valid in PDF (#11)
This commit is contained in:
parent
d52b06377d
commit
9659c0ef5e
|
@ -69,7 +69,7 @@ module Muse::Dl
|
||||||
|
|
||||||
if add_bookmark
|
if add_bookmark
|
||||||
# Run pdftk and add the bookmark to the file
|
# 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
|
end
|
||||||
|
|
||||||
# Now we can move the file to the proper PDF filename
|
# Now we can move the file to the proper PDF filename
|
||||||
|
|
Loading…
Reference in New Issue