You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2010/10/27 18:56:20 UTC
[jira] Resolved: (VELOCITY-784) troubles with backslash escaping
[ https://issues.apache.org/jira/browse/VELOCITY-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Bubna resolved VELOCITY-784.
-----------------------------------
Resolution: Invalid
No, it's not, you are supposed to double quotes to escape them.
> troubles with backslash escaping
> --------------------------------
>
> Key: VELOCITY-784
> URL: https://issues.apache.org/jira/browse/VELOCITY-784
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 2.0
> Environment: any
> Reporter: Claude Brisson
> Priority: Minor
>
> Is backslash escaping supposed to work inside string literals? I'm not sure it ever worked.
> #set($char = "\'") $char ## => displays \'
> ##set($char = '\'') $char ## => parser fails
> ##set($char = "\"") $char ## => parser fails
> #set($char = "\\") $char ## => displays \\
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org