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/30 21:44:20 UTC
[jira] [Closed] (VELOCITY-679) Escaping #set(foo="bar")\\$$foo
broken
[ https://issues.apache.org/jira/browse/VELOCITY-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson closed VELOCITY-679.
-----------------------------------
Resolution: Not A Bug
Assignee: Claude Brisson
Issue title and comment aren't consistent. I guess you mean \\$$foo
$$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