See below
On Apr 10, 2012, at 4:28 PM, Frank Fischer wrote:
Ok - i did get what i wanted ;-) ,
i tested your proposal with another example but
was accustomed to the JSPWiki list syntax:
*first line
<space>still first line
*second line
<space>still second line
If i put this whole list into the macro the second '*' is
not at the start of the line. This (and a typo typed by
myself) made me think that your first answer would
not work for me.
But putting each list item into a separate macro works
well and is sufficient for me:
=== works ===
* {{velocity filter="html"}}
[[**Platform** (
Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Componen…
{{/velocity}}
* {{velocity filter="html"}}
[[Writing XWiki
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/Writing… -
[[
GitHub>>https://github.com/xwiki]]
{{/velocity}}
=== does not work (somewhat cleaner) ===
{{velocity filter="html"}}
* [[Platform (
Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Componen…
* [[Writing XWiki
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/Writing… -
[[
GitHub>>https://github.com/xwiki]]
{{/velocity}}
You need to read:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Velocity+Macro+Filter
It explains the various filters and how they work.
The HTML filter doesn't put any new line.
What you want in your second example is:
{{velocity filter="html"}}
* [[Platform (
Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
[[Component
Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Componen…
* [[Writing XWiki
components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/Writing… -
[[
GitHub>>https://github.com/xwiki]]
{{/velocity}}
(note the $nl to insert a new line).
Thanks
-Vincent
Thank you again
Frank
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users