Welcome Guest, Not a member yet? Register   Sign In
Using parser->parse();
#3

[eluser]staJr[/eluser]
Thanks Eric for you assistance !

My probleme is not about whitespaces (it's not a big deal) but more about the "\n" new line inserted in each loop of my foreach.
As I mentionned this is my pb :

Code:
{foo_foreach}
  <link rel="stylesheet" type="text/css" media="screen" href="{foo_url}" />
{/foo_foreach}

Will output :

Code:
<link rel="stylesheet" type="text/css" media="screen" href="http://www.exemple.com/css/css.css" />whitespace
--&gt; new line <--
&lt;link rel="stylesheet" type="text/css" media="screen" href="http://www.exemple.com/css/css.css" /&gt;whitespace
--&gt; new line <--
&lt;link rel="stylesheet" type="text/css" media="screen" href="http://www.exemple.com/css/css.css" /&gt;whitespace

What if I don't want those new lines for each loop ?

The only way I found for not having those new lines is TO USE "Alternative Control Structures". It works and I don't have new lines.

So, as I want to use the parser and the {tags}, I'm wondering if there is something I'm missing to not have the "new lines".

Thanks.

Jean.


Messages In This Thread
Using parser->parse(); - by El Forum - 07-15-2011, 06:38 PM
Using parser->parse(); - by El Forum - 07-16-2011, 10:04 PM
Using parser->parse(); - by El Forum - 07-17-2011, 05:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB