On Apr 10, 2012, at 8:26 PM, Arnaud bourree wrote:

> Hello,
> 
> I don't really understand need of velocity macro in you use-case.
> Personally, when I want a new line in list, table ..., I used ((( )))
> Then you have:
> * [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]] -
> [[Component 
> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]](((
> )))
> * [[Writing XWiki
> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
> -
> [[GitHub>>https://github.com/xwiki]](((
> )))
> 
> Same result, there are always many path for same result :-D

Except that it's not the same result… ;)

What Frank wanted was to have content rendered on a single line but displayed 
on multiple lines when editing it.

Thanks
-Vincent

> Regards,
> 
> Arnaud.
> 
> 2012/4/10 Frank Fischer <fr...@jcpsim.org>:
>> Perfect
>> 
>> Frank
>> 
>> 
>> 
>> On 04/10/2012 04:33 PM, Vincent Massol wrote:
>>> 
>>> 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/Component+Module]]
>>>> {{/velocity}}
>>>> * {{velocity filter="html"}}
>>>> [[Writing XWiki
>>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>>> -
>>>> [[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/Component+Module]]
>>>> * [[Writing XWiki
>>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>>> -
>>>>  [[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/Component+Module]]$nl
>>> * [[Writing XWiki
>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>> -
>>>  [[GitHub>>https://github.com/xwiki]]
>>> {{/velocity}}
>>> 
>>> (note the $nl to insert a new line).
>>> 
>>> Thanks
>>> -Vincent
>>> 
>>>> Thank you again
>>>>  Frank
>>>> 
>>>>> Yes it's possible ;)
>>>>> 
>>>>> As I said in my answer this is already possible. Try this in your wiki:
>>>>> 
>>>>> {{velocity filter="html"}}
>>>>> [[Platform (Features]>>http://platform.xwiki.org/xwiki/bin/view/Main/]]
>>>>> -
>>>>> [[Component
>>>>> Module>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module]]
>>>>> -
>>>>> [[Writing XWiki
>>>>> components>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents]]
>>>>> -
>>>>> [[GitHub>>https://github.com/xwiki]] -
>>>>> [[User's Guide>>http://enterprise.xwiki.org/xwiki/bin/view/UserGuide/]]
>>>>> -
>>>>> [[Getting
>>>>> started>>http://enterprise.xwiki.org/xwiki/bin/view/GettingStarted/]] -
>>>>> [[Syntax>>http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax]] -
>>>>> [[Administrator's
>>>>> Guide>>http://platform.xwiki.org/xwiki/bin/view/AdminGuide/]] -
>>>>> [[Developer's
>>>>> Guide>>http://platform.xwiki.org/xwiki/bin/view/DevGuide/]] -
>>>>> [[Development Zone>>http://dev.xwiki.org/xwiki/bin/view/Main/]] -
>>>>> [[Platform
>>>>> Features>>http://platform.xwiki.org/xwiki/bin/view/Features/]] -
>>>>> [[Extensions>>http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome]]
>>>>> -
>>>>> [[FAQ>>http://www.xwiki.org/xwiki/bin/view/FAQ/]]
>>>>> {{/velocity}}
>>>>> 
>>>>> Thanks
>>>>> -Vincent
>>>>> 
>>>>> 
>>>> _______________________________________________
>>>> users mailing list
>>>> users@xwiki.org
>>>> http://lists.xwiki.org/mailman/listinfo/users
>>> 
>>> _______________________________________________
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>> 
>> 
>> _______________________________________________
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to