cellarspoon
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
2 additions and
1 deletions
-
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 = "<font size=10>{}</font>".format(comments) |
|
|
|
pcomments = Paragraph(strip_tags(tag)) |
|
|
|
content.append(pcomments) |
|
|
|