PHP code line break `\n` causing gap between elements
<p>I'm echoing a series of HTML elements using PHP. I'm using <code>\n</code> to cause code line breaks to make the source code more organized and legible. </p>

<p>For some reason, the use of <code>\n</code> in a specific location is causing a mysterious gap between the HTML elements. In firebug, this gap is not showing up as a margin, or padding, but rather just a gap.</p>

<p><strong>Here is the PHP in question:</strong></p>

<p>Note: As you can see, I have removed all of the PHP inside the tags as I'm pretty sure it is not relevant to this problem.</p>

<pre><code>echo '&lt;ul ... &gt;'."\n";
while($row = mysql_fetch_assoc($result_pag_data)) {

    echo '&lt;li&gt;&lt;a ... &gt;'."\n".
                '&lt;img ... &gt;'."\n".
          '&lt;/a&gt;&lt;/li&gt;'."\n"; &lt;---- THIS IS THE \n THAT SEEMS TO BE CAUSING THE GAP
}
echo '&lt;/ul&gt;'."\n";  
</code></pre>

<p>Have you ever seen anything like this before, a presentation gap associated with PHP line breaks?
If so, what is the reason for it?</p>

<p>Is it really that important that I use <code>\n</code> in my code?</p>
