On Mon, Aug 2, 2010 at 8:35 PM, Stefan Bodewig <bode...@apache.org> wrote:
> On 2010-08-02, <apa...@recks.org> wrote:
>
>> even though I would love to have the established character escaping
>> with a backslash used in many programming languages, velocity is not
>> up to it yet (the tendency is not to make it into a programming
>> language).
>
> I don't have the slightest problem with that (but the again I'm not a
> doxia developer either ;-).
>
>> To my knowledge escaping of quotes was never supported by Velocity.
>
> My guess is it works with Velocity 1.5 or otherwise the doxia folks
> wouldn't be using it that way.  At least the parser doesn't choke on the
> template in question.

I'm 99.2% sure this never worked.  It probably just didn't break in
the same way, as you suggest.

>> So in the doxia case either use a single quote for the XML attributes,
>> or double-up the quotes, or use the poor-mans-escaping (TM):
>>   #set( $Q = '"' )
>
> I'll take this advice to the doxia people and see whether they want to
> adapt.  "It works for 1.5 and we are not going to upgrade anyway" may be
> an alternative answer.

Only if by "works" you mean "fails with insufficient notice".  I
recommend Velocity 1.7 and doubling up the quotes.

> Thank you for the feedback
>
>      Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
> For additional commands, e-mail: dev-h...@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to