hi. check out the format option
Ter
On Dec 12, 2010, at 1:18 AM, Mike Allbright wrote:

> Is there a way to pad fields in StringTemplate?
> 
> 
> 
> In other words, I want to print a table with each element right or left
> justified within a field of a fixed width and pad the rest of the field with
> whitespace (or some other character).
> 
> 
> 
> Can this be done with StringTemplate, or do I need to precalculate/prefill
> field strings with padding?
> 
> 
> 
> Thanks & Regards,
> 
> --Mike
> 
> Mike Allbright
> 
> [email protected]
> 
> (972) 896-7070
> 
> 
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to