<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP eats my newline</title>
	<atom:link href="http://rickardandersson.com/php-eats-my-newline/feed" rel="self" type="application/rss+xml" />
	<link>http://rickardandersson.com/php-eats-my-newline</link>
	<description>The general consensus among clients is that they are your only client.</description>
	<lastBuildDate>Tue, 15 May 2012 12:31:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta2-20460</generator>
	<item>
		<title>By: Rickard</title>
		<link>http://rickardandersson.com/php-eats-my-newline#comment-18822</link>
		<dc:creator>Rickard</dc:creator>
		<pubDate>Wed, 07 May 2008 08:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://rickardandersson.com/?p=115#comment-18822</guid>
		<description>I disagree. In my opinion, if there are two newlines, it should output two newlines. Anything else is &quot;magic&quot; and that&#039;s something we want to avoid as much as possible.</description>
		<content:encoded><![CDATA[<p>I disagree. In my opinion, if there are two newlines, it should output two newlines. Anything else is &#8220;magic&#8221; and that&#8217;s something we want to avoid as much as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://rickardandersson.com/php-eats-my-newline#comment-18819</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 07 May 2008 03:00:39 +0000</pubDate>
		<guid isPermaLink="false">http://rickardandersson.com/?p=115#comment-18819</guid>
		<description>Try again:

Line Before
&lt;?php
for ($i=0; $i&lt;10; $i++)
echo &quot;Internal Line $i\n&quot;;
?&gt;
Line After

Then it works as expected, rather than having a blank line between &quot;Internal Line 9&quot; and &quot;Line After&quot;... If it didn&#039;t gobble the newline then you&#039;d need:

&lt;?php
...
?&gt;Line After

Which is even worse, IMHO.</description>
		<content:encoded><![CDATA[<p>Try again:</p>
<p>Line Before<br />
&lt;?php<br />
for ($i=0; $i&lt;10; $i++)<br />
echo &#8220;Internal Line $i\n&#8221;;<br />
?&gt;<br />
Line After</p>
<p>Then it works as expected, rather than having a blank line between &#8220;Internal Line 9&#8243; and &#8220;Line After&#8221;&#8230; If it didn&#8217;t gobble the newline then you&#8217;d need:</p>
<p>&lt;?php<br />
&#8230;<br />
?&gt;Line After</p>
<p>Which is even worse, IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://rickardandersson.com/php-eats-my-newline#comment-18818</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 07 May 2008 02:58:58 +0000</pubDate>
		<guid isPermaLink="false">http://rickardandersson.com/?p=115#comment-18818</guid>
		<description>I like the way the end of a PHP block includes the newline directly after it; what if you wanted to loop within the block:

Line Before
&lt;?php
for ($i=0; $i
Line After

Then it works as expected, rather than having a blank line between &quot;Internal Line 9&quot; and &quot;Line After&quot;... If it didn&#039;t gobble the newline then you&#039;d need:

Line After

Which is even worse, IMHO.</description>
		<content:encoded><![CDATA[<p>I like the way the end of a PHP block includes the newline directly after it; what if you wanted to loop within the block:</p>
<p>Line Before<br />
&lt;?php<br />
for ($i=0; $i<br />
Line After</p>
<p>Then it works as expected, rather than having a blank line between &#8220;Internal Line 9&#8243; and &#8220;Line After&#8221;&#8230; If it didn&#8217;t gobble the newline then you&#8217;d need:</p>
<p>Line After</p>
<p>Which is even worse, IMHO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jive</title>
		<link>http://rickardandersson.com/php-eats-my-newline#comment-18417</link>
		<dc:creator>jive</dc:creator>
		<pubDate>Wed, 16 Apr 2008 04:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://rickardandersson.com/?p=115#comment-18417</guid>
		<description>I&#039;m glad I&#039;m not the only one that noticed PHP does that.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad I&#8217;m not the only one that noticed PHP does that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gizzmo</title>
		<link>http://rickardandersson.com/php-eats-my-newline#comment-17519</link>
		<dc:creator>Gizzmo</dc:creator>
		<pubDate>Sun, 24 Feb 2008 22:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://rickardandersson.com/?p=115#comment-17519</guid>
		<description>Yes its Very annoying</description>
		<content:encoded><![CDATA[<p>Yes its Very annoying</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StevenBullen</title>
		<link>http://rickardandersson.com/php-eats-my-newline#comment-16444</link>
		<dc:creator>StevenBullen</dc:creator>
		<pubDate>Tue, 05 Feb 2008 18:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://rickardandersson.com/?p=115#comment-16444</guid>
		<description>Clean markup in source code is a must... :P

Its so much better on the eye.</description>
		<content:encoded><![CDATA[<p>Clean markup in source code is a must&#8230; :P</p>
<p>Its so much better on the eye.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

