Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356169

Summary: FlowUtilities.canBreakAfter(char c) always breaks on dashes
Product: [Tools] GEF Reporter: Eric Wout van der Steen <e.w.van.der.steen>
Component: GEF-Legacy Draw2dAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.6.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Eric Wout van der Steen CLA 2011-08-30 04:02:16 EDT
Build Identifier: 20110301-1815

To break text into lines the canBreakAfter method is used. This method now checks for whitespace and dashes.

In some contexts, this is not desirable, for instance when building a WYSIWYG (X)HTML editor. In browsers, words are not broken off at dashes.

It would be great if this could be configured with a parameter, for instance an extra wrapping option in ParagraphTextLayout.

Reproducible: Always

Steps to Reproduce:
1. Create a textFlow with some text in it with words with dashes.
2. Set the size of the container to cause line-breaking.
3. Words are broken of at the dashes.