Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2857

DSL tokens abutting brackets expand with leading whitespaces

    XMLWordPrintable

Details

    • Hide

      Create a DSL with

      [when]

      {name} is my name=n:Name(name=="{name}

      ")

      Observe whitespace in expansion of token name.

      Show
      Create a DSL with [when] {name} is my name=n:Name(name=="{name} ") Observe whitespace in expansion of token name.

    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.

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            mwhidden_jira Michael Whidden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: