diff options
author | Martin Vilcans <martin@librador.com> | 2015-10-12 09:15:47 +0200 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2015-10-12 09:15:47 +0200 |
commit | f52103e567f18c652b8b9f28bbe8a1d754a78471 (patch) | |
tree | 259edcf7f686b642c6662a38406b84b5ecf2af3a | |
parent | 5fac15c2aca4e364dabc1ab43342f6cf4ed985ae (diff) | |
download | screenplain-f52103e567f18c652b8b9f28bbe8a1d754a78471.tar.gz |
Restore template_constructor argument in to_pdf
-rw-r--r-- | screenplain/export/pdf.py | 7 | ||||
-rw-r--r-- | screenplain/main.py | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/screenplain/export/pdf.py b/screenplain/export/pdf.py index c5a9ee9..83f3474 100644 --- a/screenplain/export/pdf.py +++ b/screenplain/export/pdf.py @@ -230,8 +230,11 @@ def get_title_page_story(screenplay): return story -def to_pdf(screenplay, output_filename, is_strong): - template_constructor = DocTemplate +def to_pdf( + screenplay, output_filename, + template_constructor=DocTemplate, + is_strong=False, +): story = get_title_page_story(screenplay) has_title_page = bool(story) diff --git a/screenplain/main.py b/screenplain/main.py index 3d5e711..ba6fc10 100644 --- a/screenplain/main.py +++ b/screenplain/main.py @@ -94,7 +94,7 @@ def main(args): if not output_file: sys.stderr.write("Can't write PDF to standard output") sys.exit(2) - to_pdf(screenplay, output_file, options.strong) + to_pdf(screenplay, output_file, is_strong=options.strong) else: if output_file: output = codecs.open(output_file, 'w', 'utf-8') |