Bug 188 : Text block wraps incorrectly if string contains a manual line break character
Last modified: 2005-11-26 06:05




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
cadin
Assigned To:
fry

Attachment Type Created Size Actions
sketch that shows the problem application/zip 2005-10-26 08:42 8.80 KB

Description:   Opened: 2005-10-25 08:08
When rendering a string in a text block with a fixed width the string will wrap based on the
width even if it has already been broken with a line break char (\n).

If the string would normally wrap after the 4th word in the string, and a line break is
inserted after the 3rd word, a new line will be created after the 3rd AND 4th word, leaving
the 4th word on a line by itself.

The text should wrap only after the 3rd word -- where the manual break is.

I've produced this problem in 0090 and 0093.

Below is a sketch that illustrates the problem.
http://www.cadinbatrack.com/processing/textProblem/index.html

Notice that both text blocks break the line after the word 'Nulla' even though in the first
string there is a line break before 'Nulla' as well.
Additional Comment #1 From fry 2005-10-26 08:42
edit]
sketch that shows the problem
Additional Comment #2 From fry 2005-10-26 08:42
confirmed.. will fix this for the next release. thanks for the report & the
sketch.
Additional Comment #3 From fry 2005-11-26 06:05
fixed for 0096, thanks again for the example.