You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Alexandre Pophal <po...@rsjug.org> on 2004/03/18 18:23:00 UTC
problems trying print \\\\
I've tryed print
\\\\
as a result of a template parsing, but I got
\\
ok, so I've tryed \\\\\\\\ thinking that it would work as the same
literal in Java, but I got
\\
Is there any explanation for that?
Thanks a lot,
Alexandre Pophal
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: problems trying print \\\\
Posted by Geir Magnusson Jr <ge...@4quarters.com>.
On Mar 18, 2004, at 1:39 PM, Alexandre Pophal wrote:
> No, the literal \\\\ is in the middle of a template, without
> references near it.
Hm.
I just made a little template, using CVS HEAD :
\
\\
\\\
\\\\
\\\\\
and the output is :
\
\\
\\\
\\\\
\\\\\
which seems right.... what version are you using?
geir
>
>
> Geir Magnusson Jr wrote:
>
>>
>> On Mar 18, 2004, at 12:23 PM, Alexandre Pophal wrote:
>>
>>> I've tryed print
>>> \\\\
>>> as a result of a template parsing, but I got
>>> \\
>>> ok, so I've tryed \\\\\\\\ thinking that it would work as the same
>>> literal in Java, but I got
>>> \\
>>> Is there any explanation for that?
>>
>>
>> That's prollie going to be a bug :) but can you give us a little
>> more info? Is there a reference nearby?
>>
>>>
>>> Thanks a lot,
>>>
>>> Alexandre Pophal
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail:
>>> velocity-user-help@jakarta.apache.org
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
--
Geir Magnusson Jr 203-247-1713(m)
geir@4quarters.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: problems trying print \\\\
Posted by Alexandre Pophal <po...@rsjug.org>.
No, the literal \\\\ is in the middle of a template, without references
near it.
Geir Magnusson Jr wrote:
>
> On Mar 18, 2004, at 12:23 PM, Alexandre Pophal wrote:
>
>> I've tryed print
>> \\\\
>> as a result of a template parsing, but I got
>> \\
>> ok, so I've tryed \\\\\\\\ thinking that it would work as the same
>> literal in Java, but I got
>> \\
>> Is there any explanation for that?
>
>
> That's prollie going to be a bug :) but can you give us a little more
> info? Is there a reference nearby?
>
>>
>> Thanks a lot,
>>
>> Alexandre Pophal
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: problems trying print \\\\
Posted by Geir Magnusson Jr <ge...@4quarters.com>.
On Mar 18, 2004, at 12:23 PM, Alexandre Pophal wrote:
> I've tryed print
> \\\\
> as a result of a template parsing, but I got
> \\
> ok, so I've tryed \\\\\\\\ thinking that it would work as the same
> literal in Java, but I got
> \\
> Is there any explanation for that?
That's prollie going to be a bug :) but can you give us a little more
info? Is there a reference nearby?
>
> Thanks a lot,
>
> Alexandre Pophal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
--
Geir Magnusson Jr 203-247-1713(m)
geir@4quarters.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: problems trying print \\\\
Posted by Mike Kienenberger <mk...@alaska.net>.
Alexandre Pophal <po...@rsjug.org> wrote:
> I've tryed print
> \\\\
> as a result of a template parsing, but I got
> \\
> ok, so I've tryed \\\\\\\\ thinking that it would work as the same
> literal in Java, but I got
> \\
> Is there any explanation for that?
I've got no explanation, but you can use
#set ($slash = '\')
$slash$slash$slash$slash
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org