Thank you very much Erik. (Great to see you here and on the Solr group.) This is a good tip, because from it I realized that bodyContent is class org.apache.velocity.runtime.directive.Block. So another way to trim from what Alex suggested is: #macro(my_trim)$!bodyContent.toString().trim()#end Simply doing: #macro(my_trim)$!bodyContent.trim()#end Does not work. Thanks again, O. O.
----- Messaggio originale ----- Da: Erik Hatcher <erik.hatc...@gmail.com> A: Velocity Users List <user@velocity.apache.org>; O. Olson <olson_...@yahoo.it> Cc: Sergiu Dumitriu <sergiu.dumit...@gmail.com>; Alex Fedotov <a...@kayak.com> Inviato: Giovedì 8 Agosto 2013 5:36 Oggetto: Re: What does "Velocimacro with a Body" mean? One trick I use when confronted with context objects that aren't behaving as I'd expect is to output: $object.class and then it's clear what object type you're dealing with. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org