Skip to content

Commit

Permalink
Merge pull request #563 from d3af90d/docx_fix
Browse files Browse the repository at this point in the history
Add a None check to avoid crash
  • Loading branch information
chrismaddalena authored Dec 19, 2024
2 parents d0f6ba0 + 86f3b21 commit 7a60108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghostwriter/modules/reportwriter/richtext/docx.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def tag_br(self, el, *, par=None, **kwargs):
self.text_tracking.new_block()
if "data-gw-pagebreak" in el.attrs:
self.doc.add_page_break()
else:
elif par is not None:
run = par.add_run()
run.add_break()

Expand Down

0 comments on commit 7a60108

Please sign in to comment.