Smarty 3 include params with \n

1 view
Skip to first unread message

Abalam

unread,
Jun 21, 2009, 3:26:53 PM6/21/09
to Smarty Developers
Hi,

I found this issue :

{include file="id.tpl.htm"
module=astre
id=$obj->infos.id_astre
image_id=$obj->infos.id_modele
image_field="pole"
infos=$obj->infos
video="rotation_500"}

is not working anymore... :
Code: 0
Error: Syntax Error in template "/.../templates//astre.tpl.htm" on
line 4 " id=$obj->infos.id_astre " - Unexpected " ", expected one of:
"identifier"
File: /.../libs/Smarty/sysplugins/internal.templatecompilerbase.php
Line: 265

Now i'm forced to write this without \n or \r :
{include file="id.tpl.htm" module=astre id=$obj->infos.id_astre
image_id=$obj->infos.id_modele image_field="pole" infos=$obj->infos
video="rotation_500"}

Could you check this and tell me if it's fixable please ?

Thanks for reading,
Yann

U.Tews

unread,
Jun 22, 2009, 10:25:32 AM6/22/09
to Smarty Developers
Yann

This has been fixed in the SVN now.

Uwe

André Pinheiro

unread,
Jul 6, 2009, 1:40:00 PM7/6/09
to Smarty Developers
Guys,

All Smarts tags accept this broken line, or only a group of the tags?

Andre Pinheiro.

U.Tews

unread,
Jul 6, 2009, 4:12:01 PM7/6/09
to Smarty Developers
Currently line breaks are allowed in all tags on attribute boundary.

Uwe
Reply all
Reply to author
Forward
0 new messages