Velocity Templates - New Line.
Posted
by
LdSe
on Stack Overflow
See other posts from Stack Overflow
or by LdSe
Published on 2010-12-28T20:52:27Z
Indexed on
2010/12/28
20:54 UTC
Read the original article
Hit count: 169
Hello all,
I've been working with Apache's Velocity engine and a custom template.
The thing is, that I haven't been able to generate a String with the corresponding line breaks.
I tried almost everything that I found, such as using $esc.n and $esc.newline (I'm already using escape tools on my project) but it seems that the version I'm currently using doesn't support it (1.4), checked if putting '\n', '\\n' and even '\\\n' would work, but same thing.
Does anyone have any solution to this?
Thanks a lot in advance!
Regards.
© Stack Overflow or respective owner