velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Babachanakh" <P...@uib.cherkassy.net>
Subject Alignment
Date Thu, 29 Nov 2001 06:30:53 GMT
Hello all!!!

I have tried to use Velocity Template Engine (version 1.2 rc3).
It's wonderful. But I have a problem and I don't
understand how to resolve it. I will try to explain it with an
example. I wanted to print some text in 2 columns. For this I
wrote the following template:

#set( $list = ["1","12","123","1234"] )

    First        Second
#foreach( $l in $list)
    $l           $l
#end


I got the following output:

    First        Second
    1           1
    12           12
    123           123
    1234           1234

But I want a different output:

    First        Second
    1            1
    12          12
    123        123
    1234      1234

How I can get the output I want?

Thank you for your time.

Sincerely,
Pavel Babachanakh
paul@uib.cherkassy.net



--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message