From cc070961912cf1383122d7d7b3b9204cf91cbdfc Mon Sep 17 00:00:00 2001 From: Prad Nelluru Date: Sat, 18 Apr 2020 23:41:50 -0400 Subject: [PATCH] fix add-bookmark failures b/c extra newlines in chapter title --- src/fetch.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch.cr b/src/fetch.cr index 58b69a0..7795e2d 100644 --- a/src/fetch.cr +++ b/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