Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-43

can't parse text immediately after #else

    Details

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

      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 ""

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jdr5list@pacbell.net Jim Rudnicki
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: