Skip to content

Commit

Permalink
5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Captain-FLAM committed Nov 16, 2023
1 parent 10c470e commit 388a9ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions App/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,9 @@ def write(self, text):
if '<div' in text:
text = regex.sub(r'<div.*color:(.*);.*?>(.*)</div>', r'<font color="\1">\2</font>', text) # Convert to <font color="...">

text = text.rstrip('\n') # Remove \n at the end
text = regex.sub(r'\n', '<br>', text) # Convert \n to <br>
text = regex.sub(r'\n', '<br>', text) # Convert \n to <br>

self.CONSOLE.AppendToPage('<p>'+ text +'</p>')
self.CONSOLE.AppendToPage(text)
self.CONSOLE.Update()
self.CONSOLE.ScrollLines(1)
else:
Expand Down

0 comments on commit 388a9ec

Please sign in to comment.