From ab495712c73526b8f775c8e85c437085f1abcb1b Mon Sep 17 00:00:00 2001 From: George Hickman Date: Sun, 30 Oct 2011 13:14:50 +0000 Subject: Code cleanup Fix a spelling mistake Wrap a particularly long line --- wkhtmltopdf/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wkhtmltopdf/utils.py') 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) -- cgit v1.2.3