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@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@objectweb.org mailing list.
To unsubscribe: mailto: xwiki-users-unsubscribe@objectweb.org
For general help: mailto: sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws