velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: New lines in velocity set()?
Date Fri, 16 Nov 2007 19:17:00 GMT
Maybe you don't have a recent enough version of velocity - in 1.5
newline characters are accepted, as long as the + concatenation
operator.

  Claude

Le vendredi 16 novembre 2007 à 12:52 -0500, Jobol Bojol a écrit :
> Hi,
> 
>   I am new to velocity. I was wondering if I can have new lines in any
> of the string latters such as in this example:
> 
> #set($context = "<B>My content</B>
>                           <p>my content</p>"
> 
>  I tried using the "+" and the "\" but i am not having much luck.
> Right now I have a long HTML on the same line and it doesnt look right
> and is hard to maintain.
> 
>  Any help would be appreciated.
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
> 


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


Mime
View raw message