Skip to content

Commit

Permalink
Merge pull request #365 from MyreMylar/fix-append-text-box
Browse files Browse the repository at this point in the history
Fix bug in append text for text box
  • Loading branch information
MyreMylar authored Dec 7, 2022
2 parents 7de77da + 00ffffe commit a36b532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygame_gui/elements/ui_text_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,10 +904,10 @@ def append_html_text(self, new_html_str: str):
:param new_html_str: The, potentially HTML tag, containing string of text to append.
"""
if self.should_html_unescape_input_text:
self.appended_text += html.unescape(new_html_str)
feed_input = html.unescape(new_html_str)
else:
self.appended_text += new_html_str
feed_input = self.appended_text
feed_input = new_html_str
self.appended_text += feed_input
if self.plain_text_display_only:
# if we are supporting only plain text rendering then we turn html input into text at this point
feed_input = html.escape(feed_input) # might have to add true to second param here for quotes
Expand Down

0 comments on commit a36b532

Please sign in to comment.