aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--screenplain/export/pdf.py7
-rw-r--r--screenplain/main.py2
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')