Skip to content

Commit

Permalink
Fix problem with the identification report not being generated for ce…
Browse files Browse the repository at this point in the history
…rtain survey sessions.

Ref: scrum-1846
Fixes: #688
  • Loading branch information
thet committed Feb 8, 2024
1 parent ab33aac commit 9eecea6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog
16.0.0 (unreleased)
-------------------

- Fix problem with the identification report not being generated for certain survey sessions.
Ref: scrum-1846
Fixes: #688
[thet]

- Do not log anymore not found exceptions
[ale-rt]

Expand Down
2 changes: 1 addition & 1 deletion src/euphorie/client/docx/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def handleElement(self, node, doc, style=None):
# from newlines in the markup
# if node.tag in ['li', 'p', 'strong', 'em', 'b', 'i']:
tail = tail and tail.strip()
if tail and not doc.text.endswith(tail):
if tail and not doc.paragraphs[-1].text.endswith(tail):
doc.add_paragraph(tail)
return doc

Expand Down

0 comments on commit 9eecea6

Please sign in to comment.