From 2ab3075ff824c679ac381fb6b59caa1375f47330 Mon Sep 17 00:00:00 2001 From: sanj Date: Fri, 30 Jul 2010 20:51:30 +0530 Subject: [PATCH] weird.. --- edgware/editor/print_pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edgware/editor/print_pdf.py b/edgware/editor/print_pdf.py index 47a4f41..dd1375b 100644 --- a/edgware/editor/print_pdf.py +++ b/edgware/editor/print_pdf.py @@ -3,8 +3,8 @@ import os def print_url_list(urls, width, height, dpi, output_path): clean_urls = [] for u in urls: - clean_urls.append(u) - cmd = "wkhtmltopdf --page-width %d --page-height %d -d %d '%s' '%s'" % (width, height, dpi, " ".join(clean_urls), output_path,) + clean_urls.append("'" + u + "'") + cmd = "wkhtmltopdf --page-width %d --page-height %d -d %d %s '%s'" % (width, height, dpi, " ".join(clean_urls), output_path,) # print cmd os.system(cmd) return output_path