You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2002/02/22 00:42:09 UTC

DO NOT REPLY [Bug 6633] New: - obscure parsing/rendering error

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6633>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6633

obscure parsing/rendering error

           Summary: obscure parsing/rendering error
           Product: Velocity
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Build
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: nathan@esha.com


here's a weird one for you... (this is with velocity-1.3-dev)

$bar##
#set( $foo = "foo" )
$foo

renders as

$bar#set( $foo = "foo" ) $foo

and

$bar#*
*##set( $foo = "foo" )
$foo

renders as

$bar#set( $foo = "foo" ) $foo

fore some reason, the parser doesn't catch the #set directive in these 
situations.  in both cases, removing the $bar reference right
before the comment, or adding an extra new-line between the comment end and
the #set directive will cause the template to render correctly.  funky, eh?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>