[jira] [Resolved] (VELOCITY-542) minus sign in #set requires spaces to surround it

2018-10-08 Thread Claude Brisson (JIRA)


 [ 
https://issues.apache.org/jira/browse/VELOCITY-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claude Brisson resolved VELOCITY-542.
-
   Resolution: Fixed
Fix Version/s: (was: 2.0)
   2.1

Fixed by commit 1843186, which add a new _parser.allows.dash.in.identifiers_ 
boolean property (false by default).

When true, one can use '-' in identifiers, as with the 1.7 parser.


> minus sign in #set requires spaces to surround it
> -
>
> Key: VELOCITY-542
> URL: https://issues.apache.org/jira/browse/VELOCITY-542
> Project: Velocity
>  Issue Type: Bug
>  Components: Engine
>Affects Versions: 1.5
>Reporter: Will Glass-Husain
>Assignee: Claude Brisson
>Priority: Minor
> Fix For: 2.1
>
>
> The following example:
> #set($thisCampNumber = 10)
> #set($nextCampNumber = $thisCampNumber+1)
> #set($previousCampNumber = $thisCampNumber-1)
> #set($previousCampNumberB = $thisCampNumber - 1)
> 1: $thisCampNumber
> 2: $nextCampNumber
> 3: $previousCampNumber
> 4: $previousCampNumberB
> produces this result
> 1: 10
> 2: 11
> 3: $previousCampNumber
> 4: 9
> Note that using a minus sign in a #set statement does not work if there are 
> no spaces around it.  (however, the same is not true for +).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Resolved] (VELOCITY-542) minus sign in #set requires spaces to surround it

2016-05-09 Thread Claude Brisson (JIRA)

 [ 
https://issues.apache.org/jira/browse/VELOCITY-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claude Brisson resolved VELOCITY-542.
-
   Resolution: Fixed
Fix Version/s: 2.x

fixed by commit 1742952

> minus sign in #set requires spaces to surround it
> -
>
> Key: VELOCITY-542
> URL: https://issues.apache.org/jira/browse/VELOCITY-542
> Project: Velocity
>  Issue Type: Bug
>  Components: Engine
>Affects Versions: 1.5
>Reporter: Will Glass-Husain
>Assignee: Claude Brisson
>Priority: Minor
> Fix For: 2.x
>
>
> The following example:
> #set($thisCampNumber = 10)
> #set($nextCampNumber = $thisCampNumber+1)
> #set($previousCampNumber = $thisCampNumber-1)
> #set($previousCampNumberB = $thisCampNumber - 1)
> 1: $thisCampNumber
> 2: $nextCampNumber
> 3: $previousCampNumber
> 4: $previousCampNumberB
> produces this result
> 1: 10
> 2: 11
> 3: $previousCampNumber
> 4: 9
> Note that using a minus sign in a #set statement does not work if there are 
> no spaces around it.  (however, the same is not true for +).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] Resolved: (VELOCITY-542) minus sign in #set requires spaces to surround it

2007-04-29 Thread Will Glass-Husain (JIRA)

 [ 
https://issues.apache.org/jira/browse/VELOCITY-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Will Glass-Husain resolved VELOCITY-542.


Resolution: Won't Fix

ok, guess I'm satisfied with Nathan's explanation.

 minus sign in #set requires spaces to surround it
 -

 Key: VELOCITY-542
 URL: https://issues.apache.org/jira/browse/VELOCITY-542
 Project: Velocity
  Issue Type: Bug
  Components: Engine
Affects Versions: 1.5
Reporter: Will Glass-Husain
Priority: Minor

 The following example:
 #set($thisCampNumber = 10)
 #set($nextCampNumber = $thisCampNumber+1)
 #set($previousCampNumber = $thisCampNumber-1)
 #set($previousCampNumberB = $thisCampNumber - 1)
 1: $thisCampNumberbr
 2: $nextCampNumberbr
 3: $previousCampNumberbr
 4: $previousCampNumberBbr
 produces this result
 1: 10
 2: 11
 3: $previousCampNumber
 4: 9
 Note that using a minus sign in a #set statement does not work if there are 
 no spaces around it.  (however, the same is not true for +).

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]