aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
authorGeorge Hickman <george@ghickman.co.uk>2011-10-30 13:14:50 +0000
committerGeorge Hickman <george@ghickman.co.uk>2011-10-30 13:14:50 +0000
commitab495712c73526b8f775c8e85c437085f1abcb1b (patch)
treef1c4ffee18a85c0b10120b413d204224cb5a206c /wkhtmltopdf
parentb9d28439cbacf00264e9e09851dc06bacad79991 (diff)
downloaddjango-wkhtmltopdf-ab495712c73526b8f775c8e85c437085f1abcb1b.tar.gz
django-wkhtmltopdf-ab495712c73526b8f775c8e85c437085f1abcb1b.tar.bz2
django-wkhtmltopdf-ab495712c73526b8f775c8e85c437085f1abcb1b.zip
Code cleanup
Fix a spelling mistake Wrap a particularly long line
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r--wkhtmltopdf/utils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py
index 3bfa61a..b098383 100644
--- a/wkhtmltopdf/utils.py
+++ b/wkhtmltopdf/utils.py
@@ -14,7 +14,7 @@ def wkhtmltopdf(pages, output=None, **kwargs):
Converts html to PDF using http://code.google.com/p/wkhtmltopdf/.
pages: List of file paths or URLs of the html to be converted.
- output: Optionsal output file path.
+ output: Optional output file path.
**kwargs: Passed to wkhtmltopdf via _extra_args() (See
https://github.com/antialize/wkhtmltopdf/blob/master/README_WKHTMLTOPDF
for acceptable args.)
@@ -52,13 +52,14 @@ def wkhtmltopdf(pages, output=None, **kwargs):
if process.returncode != 0:
raise CalledProcessError(process.returncode, args)
-
+
if output is None:
output = stdoutdata
return output
-def render_to_pdf(template_name, dictionary=None, context_instance=None, header_template=None, footer_template=None, **kwargs):
+def render_to_pdf(template_name, dictionary=None, context_instance=None,
+ header_template=None, footer_template=None, **kwargs):
"""Renders a html template as a PDF response."""
filename = kwargs.pop('filename', None)