Incorrect formatting for consecutive newlines with FTSimpleLayout

Bug #1351787 reported by David McFarland
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ftgl (Ubuntu)
New
Undecided
Unassigned

Bug Description

FTSimpleLayout doesn't handle consecutive \n properly. Rendering the string "foo\n\nfoo\nfoo" will result in:

foo
?foo?foo
foo
foo

The problem seems to be breakCharCount being -1 in this case, and OutputWrapped treats len < 0 as a request to render the rest of the string.

Tags: patch
Revision history for this message
David McFarland (mcfarland) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.