From 8fb864882766fecdecc1a00d04d169242779af5a Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Fri, 17 Dec 2021 18:00:18 +0100 Subject: [PATCH] rejoin the comments --- temp_index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/temp_index.py b/temp_index.py index 38e2e05..6cbd7e4 100644 --- a/temp_index.py +++ b/temp_index.py @@ -65,7 +65,8 @@ def select_fields(fields, content, styles, book): content.append(Spacer(1, 12)) if "comments" in fields: - comments = " ".join([c.text for c in book.comments]).split()[:NUM_WORDS_COMMENT] + trimmed = " ".join([c.text for c in book.comments]).split()[:NUM_WORDS_COMMENT] + comments = " ".join(trimmed) tag = "{}".format(comments) pcomments = Paragraph(strip_tags(tag)) content.append(pcomments)