diff options
author | Martin Vilcans <martin@librador.com> | 2017-02-23 00:40:21 +0100 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2017-02-23 00:40:21 +0100 |
commit | d9eb1a980798ff54ac9cd81ff1821f78aa57156b (patch) | |
tree | d5bef0df66b6491dbfce7cc0d96962d31d8a934d | |
parent | da23ebd22d32398f649fb41ecb1ad7e93e223390 (diff) | |
download | screenplain-d9eb1a980798ff54ac9cd81ff1821f78aa57156b.tar.gz |
PDF output: No space between lines in multi-line Action paragraphs
-rw-r--r-- | screenplain/export/pdf.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/screenplain/export/pdf.py b/screenplain/export/pdf.py index 02ffd63..6955616 100644 --- a/screenplain/export/pdf.py +++ b/screenplain/export/pdf.py @@ -141,8 +141,10 @@ class DocTemplate(BaseDocTemplate): def add_paragraph(story, para, style): - for line in para.lines: - story.append(Paragraph(line.to_html(), style)) + story.append(Paragraph( + '<br/>'.join(line.to_html() for line in para.lines), + style + )) def add_slug(story, para, style, is_strong): |