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

Bug 333629

Summary: [Formatter] support column layout
Product: [Modeling] TMF Reporter: Kai Kreuzer <kkreuzer>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Andreas.Muelder, kkreuzer, moritz.eysholdt
Version: 1.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.