Hi Sergiu

Thank you. It works great. 

-----Message d'origine-----
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
Sergiu Dumitriu
Envoyé : mercredi 22 juillet 2009 17:20
À : XWiki Users
Objet : Re: [xwiki-users] setContent and multilines

PERINAUD Christophe wrote:
> Hello all
> 
> I create a page that will generate a statistics table. I would like to write 
> this table in a page. How i can do that ?
> I tried this :
>         $document.setContent("{table}Date|Start|End|Duration \n 
> 20090616|1|2|3 \n{table}")
> 
> But the result is :
> Date Start End Durationn 20090616 1 2 3 n 
> 
> What i would like in my page is
> {table}
> Date|Start|End|Duration
> 20090616|1|2|3
> {table}
> 
> Any idea ?

Try using ${util.newline} instead of \n

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------------------------------

This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. 
Luxembourg B 6395, T (352) 47 97 1
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to