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

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


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:
<code>
[when]{name} is my name=n:Name(name=="{name}")
</code>
When name &quot;Mark&quot; is entered, it expands to:
<code>
n:Name(name==&quot;&nbsp;&nbsp;&nbsp;&nbsp;Mark&quot;)
</code>

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