Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB