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

can't parse text immediately after #else

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5
    • Engine
    • None
    • Operating System: All
      Platform: PC
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: