Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333629 - [Formatter] support column layout
Summary: [Formatter] support column layout
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Backlog (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 03:46 EST by Kai Kreuzer CLA
Modified: 2016-07-21 05:01 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Kreuzer CLA 2011-01-06 03:46:56 EST
This is a feature request for something that currently cannot be done with Xtext:

It would be nice if there were a way to define a padding of values as this would allow a column-based alignment of tabular texts, e.g.

Class     Attribute      Value
One       first          "a"
One       second         123
Five      a              98765

Currently, you can only have a fixed number of spaces between values, which prevents this kind of layout.

Optionally, there could be even some auto-padding, i.e. the formatter does not define the size of the padded value, but can automatically determine it from the longest value of some list - but I guess that'll be much more complicated to realize...
Comment 1 Moritz Eysholdt CLA 2016-07-21 05:01:11 EDT
This is possible with the new formatter.