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