Switching the velocity and html tag seems to do the trick:

{{velocity}}{{html}}#info("The IBOutlet classifier can be moved to the  
property definition if you like"){{/html}}{{/velocity}}

BTW I would love to add a comment or edit the Macro description on 
http://code.xwiki.org/xwiki/bin/view/Macros/InfoMacro#Comments 
  but I cannot figure out how to register.

Cheers

Andreas Schaefer
CEO of Madplanet.com Inc.
andreas.schae...@madplanet.com
schaef...@me.com

On Apr 14, 2009, at 8:47 AM, Andreas Schaefer wrote:

> Hi Vincent
>
> I am still not able to work this out. I have this Wiki Snippet on a  
> page:
>
> {{html}}{{velocity}}#info("The IBOutlet classifier can be moved to  
> the property definition if you like"){{/velocity}}{{/html}}
>
> and it generates this HTML code:
>
> <!--stopmacro--><!--startmacro:html|-||-|{{velocity}}#info("The  
> IBOutlet classifier can be moved to the property definition if you  
> like"){{/velocity}}--><p><p>&lt;div class="infomessage"&gt;The  
> IBOutlet classifier can be moved to the property definition if you  
> like&lt;/div&gt;</p></p><!--stopmacro-->
>
> which leads to entire text inside the paragraph to be printed out  
> (including the div).
>
> I upgraded to 1.8.1 yesterday by just replacing the WAR file.
>
> Andreas Schaefer
> CEO of Madplanet.com Inc.
> andreas.schae...@madplanet.com
> schaef...@me.com
>
> On Apr 14, 2009, at 12:19 AM, Vincent Massol wrote:
>
>> The velocity macros that were working for XWiki Syntax 1.0 still work
>> for XWiki syntax 2.0 (provided you use them inside the {{velocity}}
>> macro). However most of them output HTML and in XWiki Syntax 2.0 you
>> need to surround any HTML block by the {{html}} macro so basically
>> you'll need to write:
>>
>> {{html}}{{velocity}}#warning("This is my warning to you"){{/ 
>> velocity}}
>> {{/html}}
>

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

Reply via email to