[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2857) DSL tokens abutting brackets expand with leading whitespaces

Michael Whidden (JIRA) jira-events at lists.jboss.org
Wed Dec 29 16:04:20 EST 2010


     [ https://issues.jboss.org/browse/JBRULES-2857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Whidden updated JBRULES-2857:
-------------------------------------

    Description: 
If a token appears in the LHS of a [when] with no other characters between the ] and the {, the token expands with leading whitespaces in the RHS. For example:

[when]{name} is my name=n:Name(name=="{name}")

When name "Mark" is entered (without quotes), it expands to:

n:Name(name=="    Mark")


Introducing a whitespace or other text between [when] and {name} eliminates the leading whitespace from the RHS.

  was:
If a token appears in the LHS of a [when] with no other characters between the ] and the {, the token expands with leading whitespaces in the RHS. For example:

[when]{name} is my name=n:Name(name=="{name}")

When name "Mark" is entered, it expands to:

n:Name(name=="    Mark")


Introducing a whitespace or other text between [when] and {name} eliminates the leading whitespace from the RHS.



> DSL tokens abutting brackets expand with leading whitespaces
> ------------------------------------------------------------
>
>                 Key: JBRULES-2857
>                 URL: https://issues.jboss.org/browse/JBRULES-2857
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler-DSL, drools-guvnor
>    Affects Versions: 5.1.1.FINAL
>         Environment: Windows XP, JBoss 4.2.3 GA, Drools 5.1.1 Guvnor
>            Reporter: Michael Whidden
>            Assignee: Mark Proctor
>
> If a token appears in the LHS of a [when] with no other characters between the ] and the {, the token expands with leading whitespaces in the RHS. For example:
> [when]{name} is my name=n:Name(name=="{name}")
> When name "Mark" is entered (without quotes), it expands to:
> n:Name(name=="    Mark")
> Introducing a whitespace or other text between [when] and {name} eliminates the leading whitespace from the RHS.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list