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

can't parse text immediately after #else

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment