Skip to content

Commit

Permalink
Fix captions and references sometimes not having a space afterwards
Browse files Browse the repository at this point in the history
Fixes #508
  • Loading branch information
ColonelThirtyTwo committed Aug 28, 2024
1 parent ff61393 commit 78509e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ghostwriter/modules/reportwriter/richtext/ooxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def force_emit_pending_segment_break(self):
Use this before adding inline content to a paragraph, so that a space between it and the previous text is properly inserted.
"""
self.is_block_start = False
if self.segment_break_run is not None:
self.segment_break_run.text = self.segment_break_run.text + " "
self.segment_break_run = None
Expand Down

0 comments on commit 78509e3

Please sign in to comment.