Ok, found some more info. It was on the user list. :) First, there
were many discussions. Geir had some code to do \ escaping, but it
never went in because we couldn't agree:
http://marc.theaimsgroup.com/?l=velocity-user&m=101190076826580&w=2 (Jan 2002)
Then Barbara suggested the "" and '' escaping, which quickly found
consensus. Geir quickly came up with code for it, but it was then
found to only be 99.99% backwards compatible. Anyone foolish enough
to not put spaces between their string literal velocimacro parameters
#foo("a""b") would find their macros receiving a single parameter
'a"b' instead of two params 'a'' and 'b'. Still, no one seemed
opposed to breaking things for those people. Geir suggested defining
the fact that a space was not required as a bug.
http://marc.theaimsgroup.com/?t=101967216900003&r=1&w=2 (Apr 2002)
So, it looked like we were set for it to go in:
http://marc.theaimsgroup.com/?l=velocity-user&m=102407958509606&w=2 (June 2002)
But it appears it never made it in. Christoph wondered where it was
in Nov 2003, but i don't see any response to that:
http://marc.theaimsgroup.com/?l=velocity-user&m=106968934203535&w=2
Geir? Is the code for this out there still? It looks like it'll be
too late for 1.5, but perhaps we can get it in 1.6...
On 2/21/07, Nathan Bubna <[EMAIL PROTECTED]> wrote:
having a hard time finding discussion about this in the archives. i
must not have the correct search terms. anyway, here's two places
where Geir and Christoph mention this. anyone remember if this was
actually implemented?
http://marc2.theaimsgroup.com/?l=velocity-user&m=102756433303385&w=3
http://marc2.theaimsgroup.com/?l=velocity-user&m=112264108203085&w=3
On 2/21/07, Nathan Bubna <[EMAIL PROTECTED]> wrote:
> Hmm. That sucks, i can't get it to work either. Neither do i see any
> testcases for it. I also thought Geir had implemented this (might do
> some archive searching on this). But, i've long since been in the
> habit of doing the manual escaping quotes anyway and still do without
> thinking about it:
>
> i typically have the EscapeTool (from VelocityTools) present and just use:
>
> $esc.q
>
> before that i would always do:
>
> #set( $q = '"' )
>
> and use:
>
> $q
>
> the opposite works for single quotes too:
>
> #set( $s = "'" )
> $s
>
> On 2/21/07, Steve O'Hara <[EMAIL PROTECTED]> wrote:
> > I've been racking my brains trying to find a way to solve the double
> > quotes problem in 1.4 and finally gave in and moved up to 1.5 believing
> > that it is now all fixed..... However, the following gives me a parser
> > error at the use of the "".
> >
> > #set ($Anchor="<a href='javascript:void(0)'
> > onclick='OpenAttachmentsWindow(""$AppPath/file/database?datasrc=$DataSou
> > rce&view=document&key=$Key&${UniqueNumber}${velocityCount}.${FileExt}"")
> > '>")
> >
> > What am I doing wrong?
> >
> > Thans,
> >
> > Steve
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]