You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/08/31 10:44:20 UTC
[jira] [Commented] (VELOCITY-679) Escaping #set(foo="bar")\\$$foo
broken
[ https://issues.apache.org/jira/browse/VELOCITY-679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15451885#comment-15451885 ]
Claude Brisson commented on VELOCITY-679:
-----------------------------------------
Oh, I see : Jira eats double backslashes in comments...
let's try again, replacing backslashes by slashes:
$$foo -> $bar (ok, first $ is literal)
/$$foo -> $foo (weird)
//$$foo -> /$bar (ok: // renders to / before a $, then the first $ is literal and $foo gives $bar)
/$foo -> $foo (ok)
//$foo -> /bar (ok)
Only the second case looks problematic, but what should we output? The usecase itself is problematic.
Fell free to reopen if I missed something.
> Escaping #set(foo="bar")\\$$foo broken
> --------------------------------------
>
> Key: VELOCITY-679
> URL: https://issues.apache.org/jira/browse/VELOCITY-679
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.1, 1.7
> Reporter: Byron Foster
> Assignee: Claude Brisson
> Priority: Trivial
> Fix For: 2.x
>
>
> The following VTL
> #set($foo="bar")\\$$foo
> results in:
> \$bar
> but should be:
> \\$bar
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org