Skip to content

Commit

Permalink
Fix bug in append text for text box
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar committed Dec 6, 2022
1 parent 7dffa51 commit d398517
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 d398517

Please sign in to comment.