You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Karim DAKKI <la...@hotmail.com> on 2003/01/02 10:38:27 UTC

Empty lines in generated document wanted to be removed

Hello,
I am currently using Velecity through Texen. I am having empty lines in the
generated document while these lines are not present in the table as shown
in the following code :

The output is as follows :
<empty line>
<generated line> because if condition true
<empty line>
<empty line>
<empty line>
<empty line>
<empty line>

It seems that there is an empty line for each directive ( one for if and one
for the foreach loop)

Here is my code for the template :

#if ( $inputLinesNb == $outputLinesNb )
#foreach ( $item in $outputLines )
;$item.tournament.id;$item.currency;$item.totalPriceMoney;$item.winnerPriceM
oney;$item.finalistPriceMoney;$item.sFPriceMoney;$item.r16PriceMoney;$item.q
FPriceMoney;$item.r32PriceMoney;$item.r64PriceMoney;$item.r128PriceMoney;$it
em.q1RPriceMoney;$item.q2RPriceMoney;$item.q3RPriceMoney;$item.qRPriceMoney
#end
#else
#foreach ( $line in $logList )
-------------------------------------
Line   :  $velocityCount
Line   : ${line.get("line")}
Status : ${line.get("message")}
-------------------------------------
#end
#end

Thanks in advance for your help

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