From f52103e567f18c652b8b9f28bbe8a1d754a78471 Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Mon, 12 Oct 2015 09:15:47 +0200 Subject: Restore template_constructor argument in to_pdf --- screenplain/export/pdf.py | 7 +++++-- 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') -- cgit