Bug 534614 - [text] Support smart line-wrapping
Summary: [text] Support smart line-wrapping
Status: NEW
Alias: None
Product: QVTd
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 534575
Blocks:
  Show dependency tree
 
Reported: 2018-05-13 03:23 EDT by Ed Willink CLA
Modified: 2018-05-13 03:30 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 Ed Willink CLA 2018-05-13 03:23:35 EDT
The hierachical StringNode model supports indent/prefix/separator/suffix without regard to the consequent line length.

The LINE_WIDTH save option could be used to guide a wrapping algorithm. The text field just needs partitioning into children.

Some form of non-breaking space might be useful to inhibit bad partitioning. Perhaps an optional non-breaking-space field to nominate the character used as a non-breaking space in the text field.

(Once wrapping is in place this functionality should replace the unsatisfactory wrapping in the PrettyPrinter.)