[antlr-interest] Padding Fields in StringTemplate?
Terence Parr
parrt at cs.usfca.edu
Sun Dec 12 09:16:07 PST 2010
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
>
> mike at metaorb.com
>
> (972) 896-7070
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list