Closed gbegen closed 1 year ago
Thank you. Yes, there was still a bug in the new implementation. The latest commit should fix this.
Thank you @rivo, I can confirm latest commit works.
box.SetTitle(" Hello [red][World[] ")
Before:
╔══════ Hello [World] ═════…╗
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
╚═══════════════════════════╝
After:
╔══════ Hello [World] ══════╗
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
║ ║
╚═══════════════════════════╝
Great! Thanks for the feedback!
Here is some code to reproduce the problem:
With tview at v0.0.0-20230814110005-ccc2c8119703 (the commit before the new parser), this renders as expected:
With tview at v0.0.0-20230826141931-7344139b5532 or newer, this renders like this:
Every escaped close brace is causing the next line to get shifted to the right and wrap to the next line.