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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to