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:sergiu.dumitriu@gmail.com]
Sent: January 5, 2007 4:40 PM
To: xwiki-users(a)objectweb.org
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) <Marc.Lijour(a)ontario.ca> 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
xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:
xwiki-users-unsubscribe(a)objectweb.org
For general help: mailto: sympa(a)objectweb.org
<mailto:sympa@objectweb.org> ?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws