Shiva-Shadowsong / loggie

A logging utility for Godot.
MIT License
45 stars 4 forks source link

Using print_rich on a text containing a newline wrapped in the [color] BBcode tag doesn't strip away the closing tag. #3

Open Shiva-Shadowsong opened 1 month ago

Shiva-Shadowsong commented 1 month ago

Because Loggie uses print_rich under the hood to handle printing BBcode styled text in console, it suffers from an issue that's present in Godot (4.3.stable):

Issue

When a text containing a newline character ("\n") is wrapped in the [color] BBcode tags, the closing [/color] tag doesn't get stripped by the engine, resulting in it being present in the output.


This should be a fix done in the Godot engine, and here's a link to the original report regarding this issue: https://github.com/godotengine/godot/issues/97965