Thank you Sergiu. For some reason I was under the impression that velocity keywords (like #end) must start with a '#' AND start the line. And it works! -----Original Message----- From: Sergiu Dumitriu [mailto:[email protected]] Sent: January 5, 2007 4:40 PM To: [email protected] Subject: Re: [xwiki-users] Inserting velocity macro output into wiki numbered lists (#) Hi, The problem is in your code. By the way the different rendering engines are called, first the velocity macro is executed, resulting in: # apple # oranges # <span class="mystuffhere">my preference goes to:</span> mangos # guanavana So now you see the problem. The "mangos" are on the next line, making the list filter believe that the list has ended. You can fix this by removing the EOL from the macro, like this: #macro( print $stuff) <span class="mystuffhere">$stuff</span>#end Notice that the #end is right after the </span>. On 1/4/07, Lijour, Marc (EDU) <[email protected]> wrote: Is there a way we can do something like the following? #macro( print $stuff) <span class="mystuffhere">$stuff</span> #end print=velocity:print:stuff and somewhere in a list: # apple # oranges # {print: "my preference goes to: "} mangos # guanavana When I tried it, it breaks the list and restarts numbering (although a span is inlined). Marc Lijour <<Lijour, Marc (EDU).vcf>> -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto: [email protected] For general help: mailto: [email protected] <mailto:[email protected]> ?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws