Page 1 of 1

Bug: Unexpected format with tags and wordwrap

Posted: Fri Feb 11, 2011 05:13
by smartsl
For example:
[colour='FFFF0000']Test[colour='FFFFFFFF']123aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa456

With proper width of a line, this line should be wrapped and displayed like:
Test123aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaa456

But, it's actually looked like:
Test123
123aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa456

The second line is not continued with the first line. When I removed formatting tag, it looked well though.

Tested on CEGUI-0.7.5

Re: Bug: Unexpected format with tags and wordwrap

Posted: Sat Feb 12, 2011 09:58
by CrazyEddie
Thanks for raising the issue.

I agree the situation is not ideal, the reason it works like this currently is due to the way the formatting is done - where each section of formatted text is formed into a discreet object that is handled separately.

I added a mantis ticket for this, here: http://www.cegui.org.uk/mantis/view.php?id=428

CE