Skip to content

Commit

Permalink
Merge pull request #701 from euphorie/scrum-1846--fix-docx
Browse files Browse the repository at this point in the history
Fix problem with the identification report not being generated for ce…
  • Loading branch information
ale-rt authored Feb 8, 2024
2 parents ab33aac + 9eecea6 commit a3d7a09
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 a3d7a09

Please sign in to comment.