Bug 356169 - FlowUtilities.canBreakAfter(char c) always breaks on dashes
Summary: FlowUtilities.canBreakAfter(char c) always breaks on dashes
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.6.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 04:02 EDT by Eric Wout van der Steen CLA
Modified: 2011-08-30 04:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.