You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is how it is displayed when i try to read it from log file and draw it with RichTextLabel:
Expected behavior:
Closing tags printed as text, not as ANSI symbols.
Steps to reproduce
Print something with print_rich and them open log file.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
RonYanDaik
changed the title
'print_rich' saves text to log with tags converted to ANSI simbols what makes opening tags unreadable.
'print_rich' saves text to log with tags converted to ANSI simbols what makes closing tags unreadable.
Jul 15, 2023
RotatedFileLogger (but not StdLogger) should be modified to strip ANSI escape codes in the saved files. See #77263 for an example of a PR that modifies logger classes.
Note that if you want color code conversion to work perfectly, you should only use the basic ANSI colors: black, red, green, yellow, blue, magenta, cyan, white. Support for named HTML colors and 24-bit color codes is planned, but it requires rewriting the BBCode to ANSI conversion logic from scratch.
AThousandShips
changed the title
'print_rich' saves text to log with tags converted to ANSI simbols what makes closing tags unreadable.
'print_rich' saves text to log with tags converted to ANSI symbols what makes closing tags unreadable.
Jul 15, 2023
Godot version
4.1
System information
Win 10
Issue description
When using print_rich to print some logs.
This is what log looks like in godot:

This is how its is saved in log file:
This is how it is displayed when i try to read it from log file and draw it with RichTextLabel:

Expected behavior:
Closing tags printed as text, not as ANSI symbols.
Steps to reproduce
Print something with print_rich and them open log file.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: