• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template parser class adds extra newlines

#1
[eluser]Unknown[/eluser]
If $table equals array(array('key' => 1), array('key' => 2)) then
Code:
<p>
&lt;?php foreach ($table as $row) { ?&gt;
&lt;?php echo $row['key']; ?&gt;<br />
&lt;?php } ?&gt;
</p>
produces
Code:
<p>
1<br />
2<br />
</p>
whereas
Code:
<p>
{table}
{key}<br />
{/table}
</p>
is substituted with
Code:
<p>

1<br />

2<br />

</p>

I have a simple patch that fixes the problem if you are interested.


Regards,

August


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.