diff --git a/build_frontmatter.py b/build_frontmatter.py index e723ce4..b849fd2 100644 --- a/build_frontmatter.py +++ b/build_frontmatter.py @@ -491,7 +491,7 @@ def main(eoa_publication): add_pdf_info(pdffilename_front, authors_line, unformatted_chapter_title, subject_string) command_file.write("cp %s%s %s%s.bak\n" % (MEDIA_DIR, chapter[7], MEDIA_DIR, chapter[7])) - command_file.write("cp %s %s%s\n" % (pdf_filename, MEDIA_DIR, chapter[7])) + command_file.write("cp '%s' %s%s\n" % (pdf_filename, MEDIA_DIR, chapter[7])) # back to normal command_file.close()