Skip to content

Commit

Permalink
Restore template_constructor argument in to_pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
vilcans committed Oct 12, 2015
1 parent 5fac15c commit f52103e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions screenplain/export/pdf.py
Expand Up @@ -230,8 +230,11 @@ def add_lines(story, attribute, style, space_before=0):
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)

Expand Down
2 changes: 1 addition & 1 deletion screenplain/main.py
Expand Up @@ -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')
Expand Down

0 comments on commit f52103e

Please sign in to comment.