Skip to content

Commit

Permalink
Fix whitespace around links in DOCX exports
Browse files Browse the repository at this point in the history
Fixes #461
  • Loading branch information
ColonelThirtyTwo committed Jun 17, 2024
1 parent 2b0ad15 commit ea3bfcc
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 @@ -57,7 +57,7 @@ def text(self, el, *, par=None, style={}, **kwargs):
new_run = docx.oxml.shared.OxmlElement("w:r")
rPr = docx.oxml.shared.OxmlElement("w:rPr")
new_run.append(rPr)
new_run.text = str(el)
self.text_tracking.append_text_to_run(new_run, str(el))
hyperlink.append(new_run)
# Create a new Run object and add the hyperlink into it
run = par.add_run()
Expand Down

0 comments on commit ea3bfcc

Please sign in to comment.