velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Byron Foster <by...@base2.cc>
Subject Re: What's the right way to do this?
Date Tue, 06 Jan 2009 14:42:21 GMT
Try #set($text = "$velocityCount)")

On Jan 6, 2009, at 7:28 , Steve Cohen wrote:

> Here's the wrong way:
>
> #set ( $text =$velocityCount\) $field.getPaddedLabel($Language):  
> $Fields.get($field))
> The intent here is to produce a string like
>
> 3)    City: Chicago
>
> with a close-paren after the number.
>
> But velocity is complaining about that close parenthesis that I  
> thought I was handling via escaping.


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


Mime
View raw message