velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Keller <matthias.kel...@ergon.ch>
Subject Removed linebreak after macro calling
Date Tue, 16 Dec 2008 12:44:14 GMT
Hi

I've defined a macro purely for convenience to avoid long method calls 
inside my template. It looks like this:

#getProperty('name')
#getProperty('function')
#getProperty('department')

Since this is plaintext (not html), whitespaces do matter, but the 
result is like this:

namefunctiondepartment

instead of

name
function
department

To fix this I have to insert an extra empty line between every call.... 
is there another way to do that? It looks really awful in the template 
to have so many empty lines

Thanks

Matt

-- 
matthias.keller@ergon.ch  +41 44 268 83 98
Ergon Informatik AG, Kleinstrasse 15, CH-8008 Z├╝rich
http://www.ergon.ch
______________________________________________________________
e r g o n    smart people - smart software



Mime
View raw message