Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5
    • Fix Version/s: 2.x
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      Aaccording to the User Guide, "$!

      {foo}" should render as "$!{foo}

      ", but the
      actual output is "$!{" whether $foo was defined or not.

        Issue Links

          Activity

          JiaYun created issue -
          Jeff Turner made changes -
          Field Original Value New Value
          issue.field.bugzillaimportkey 26547 12315121
          Hide
          Will Glass-Husain added a comment -

          Thanks for reporting this.

          Show
          Will Glass-Husain added a comment - Thanks for reporting this.
          Will Glass-Husain made changes -
          Description Aaccording to the User Guide, "$\!{foo}" should render as "$!{foo}", but the
          actual output is "$!{" whether $foo was defined or not.
          Aaccording to the User Guide, "$\!{foo}" should render as "$!{foo}", but the
          actual output is "$!{" whether $foo was defined or not.
          Bugzilla Id 26547
          Fix Version/s 1.5 [ 12310253 ]
          Assignee Velocity-Dev List [ velocity-dev@jakarta.apache.org ]
          Environment Operating System: other
          Platform: Other
          Operating System: other
          Platform: Other
          Will Glass-Husain made changes -
          Link This issue duplicates VELOCITY-264 [ VELOCITY-264 ]
          Hide
          Will Glass-Husain added a comment -

          From the mailing list (excerpt)

          ---------- Forwarded message ----------
          From: sun davy <aweisw@hotmail.com>
          Date: Sep 11, 2006 3:51 AM
          Subject: i encounter some mistakes in User Guide.
          To: velocity-user@jakarta.apache.org

          hi Velocity team:
          I am an user of Velocity from China. Thanks for your perfect production.
          Through your creative and hard work, we have such Convenience and Powerful
          tools in our toolbox.

          ...

          2) Advanced Issues: Escaping and !
          #set( $foo = "bar" )
          $!foo
          $!

          {foo}
          $
          !foo
          $\\\!foo

          This renders as:
          $!foo
          $!{foo}

          $!foo
          $
          !foo

          My output is:
          $!foo
          $!{
          $!foo
          $
          !foo
          i was confused.
          -------------------------------------------------------
          Contrast this with regular escaping, where \ precedes $:
          \$foo
          \$!foo
          \$!

          {foo}
          $!{foo}

          This renders as:
          \$foo
          \$!foo
          \$!

          {foo}
          \bar

          My output is:
          $foo
          $!foo
          $!{foo}

          \bar

          it seems like clerical error.

          ...

          Show
          Will Glass-Husain added a comment - From the mailing list (excerpt) ---------- Forwarded message ---------- From: sun davy <aweisw@hotmail.com> Date: Sep 11, 2006 3:51 AM Subject: i encounter some mistakes in User Guide. To: velocity-user@jakarta.apache.org hi Velocity team: I am an user of Velocity from China. Thanks for your perfect production. Through your creative and hard work, we have such Convenience and Powerful tools in our toolbox. ... 2) Advanced Issues: Escaping and ! #set( $foo = "bar" ) $!foo $! {foo} $ !foo $\\\!foo This renders as: $!foo $!{foo} $!foo $ !foo My output is: $!foo $!{ $!foo $ !foo i was confused. ------------------------------------------------------- Contrast this with regular escaping, where \ precedes $: \$foo \$!foo \$! {foo} $!{foo} This renders as: \$foo \$!foo \$! {foo} \bar My output is: $foo $!foo $!{foo} \bar it seems like clerical error. ...
          Hide
          Henning Schmiedehausen added a comment -

          This is a dup.

          Show
          Henning Schmiedehausen added a comment - This is a dup.
          Henning Schmiedehausen made changes -
          Fix Version/s 1.5 [ 12310253 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.0 [ 12310291 ]
          Resolution Duplicate [ 3 ]
          Mark Thomas made changes -
          Workflow jira [ 12325126 ] Default workflow, editable Closed status [ 12551329 ]
          Mark Thomas made changes -
          Workflow Default workflow, editable Closed status [ 12551329 ] jira [ 12552043 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development