velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T. Konstantinovitz" <che...@kodefabrikken.dk>
Subject Error when Single line comment is on the last line.
Date Sat, 10 Nov 2001 23:34:10 GMT
Hi!

Thanks for a really great product!

I have come across a very minor problem in version 1.2RC3 , which I
think is an error. When the last line in a template is a single line
comment like:

<some template code>
## this is a comment

and you don't end the line with a newline character I get a parser error
saying:

An error occured while parsing template kontoudtog.vm: Lexical error:
org.apache
.velocity.runtime.parser.TokenMgrError: Lexical error at line 41, column
21.  En
countered: <EOF> after : ""

But if I add a newline character after the comment the parser don't
complain.

Thorbjørn


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message