I'm in the process of upgading our install of Velocity 1.3.1 to 1.5, but
I'm running into a problem with multi-line comments.
Basically, in a few cases, I'm getting the *# end marker of a multi-line
comment printed into my HTML output. This only seems to happen when the
comment is inside a foreach loop, but I'm not 100% positive. (It doesn't
happen in all foreach loops at least.)
I have also been unsuccessful in creating a simple example triggering
this problem, so this is probably some edge case, but it's annoying and
I'd rather not have to go through all templates and convert to
single-line comments.
One of the templates that bug out looks something like this:
-----------------------
#parse a.vsp
#parse b.vsp
#macro (c)
#foreach ($a in $list)
#end
#parse c.vsp
#foreach ($ in $list)
#* my end of comment markers are printed *#
#if (something)
#macroPrintingA
# else
#macroPrintingC
# end
#end
#end
#c
----------------
Which gives me an output like this:
*#A
*#A
*#C
*#C
*#A
*#...
If I move the comment outside the foreach, it works correctly. It also
works fine if I move it to the upper foreach.
Any ideas?
-- Erlend Simonsen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]