Velocity
  1. Velocity
  2. VELOCITY-43

can't parse text immediately after #else

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      I need to have a macro that returns a string with no newlines or
      leading/trailing spaces. The problem I found was that something like:

      #macro( test2 $n)
      #if($n<5)small#elselarge#end
      #end

      does not recognize the #else token. It produces the string "small#elselarge"
      or ""

      1. ASF.LICENSE.NOT.GRANTED--curly-directive.cmp
        0.1 kB
        Will Glass-Husain
      2. ASF.LICENSE.NOT.GRANTED--curly-directive.vm
        0.4 kB
        Will Glass-Husain
      3. ASF.LICENSE.NOT.GRANTED--Parser.jjt.patch2
        3 kB
        Will Glass-Husain
      4. ASF.LICENSE.NOT.GRANTED--Parser.jjt.patch
        3 kB
        Will Glass-Husain

        Activity

        Jim Rudnicki created issue -
        Jeff Turner made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 7189 12314913
        Henning Schmiedehausen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12324918 ] Default workflow, editable Closed status [ 12551405 ]
        Mark Thomas made changes -
        Assignee Velocity-Dev List [ velocity-dev@jakarta.apache.org ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551405 ] jira [ 12552107 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jim Rudnicki
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development