Bug: Unexpected format with tags and wordwrap

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

smartsl
Just popping in
Just popping in
Posts: 2
Joined: Wed Dec 15, 2010 01:14

Bug: Unexpected format with tags and wordwrap

Postby smartsl » Fri Feb 11, 2011 05:13

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Bug: Unexpected format with tags and wordwrap

Postby CrazyEddie » Sat Feb 12, 2011 09:58

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


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 3 guests