<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<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"
		>
	<channel>
		<title>WordPress.com Forums &#187; Topic: While Loop extra spaces between results</title>
		<link>http://en.forums.wordpress.com/topic/while-loop-extra-spaces-between-results</link>
		<description>WordPress.com Forums &#187; Topic: While Loop extra spaces between results</description>
		<language>en</language>
		<pubDate>Sun, 19 May 2013 01:02:00 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/topic/while-loop-extra-spaces-between-results" rel="self" type="application/rss+xml" />

		<item>
			<title>supportbot on "While Loop extra spaces between results"</title>
			<link>http://en.forums.wordpress.com/topic/while-loop-extra-spaces-between-results#post-1070723</link>
			<pubDate>Sat, 17 Nov 2012 02:34:08 +0000</pubDate>
			<dc:creator>supportbot</dc:creator>
			<guid isPermaLink="false">1070723@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>You did not specify a blog address or reason for posting when you created this topic.</p>
<p>This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the <a href="http://wordpress.org/support/">WordPress.org forums</a>.</p>
<p>If you don't understand the difference between WordPress.com and WordPress.org, you may find <a href="http://support.wordpress.com/com-vs-org/">this information</a> helpful.</p>
<p>If you forgot to include a link to your blog, you can reply and include it below.  It'll help people to answer your question.</p>
<p>This is an automated message.
</p>
]]></description>
					</item>
		<item>
			<title>callofthedead on "While Loop extra spaces between results"</title>
			<link>http://en.forums.wordpress.com/topic/while-loop-extra-spaces-between-results#post-1070722</link>
			<pubDate>Sat, 17 Nov 2012 02:34:08 +0000</pubDate>
			<dc:creator>callofthedead</dc:creator>
			<guid isPermaLink="false">1070722@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>I have a while loop that is giving me some formatting issues when it renders in browser. I am trying to list some posts (comma separated) in a paragraph tag.</p>
<p><code>						$postCount = 0;&lt;br /&gt;
						echo &#039;&lt;p&gt;&#039;;&lt;br /&gt;
						while ( $platforms-&gt;have_posts() ) : $platforms-&gt;the_post();?&gt;&lt;br /&gt;
							&lt;a&gt;&quot; title=&quot;&lt;?php the_title();?&gt;&quot;&gt;&lt;?php trim(the_title());?&gt;&lt;/a&gt;&lt;br /&gt;
							&lt;?php&lt;br /&gt;
							++$postCount;&lt;br /&gt;
							if ($postCount &lt; $platforms-&gt;found_posts) {&lt;br /&gt;
	     						echo &quot;, &quot;;&lt;br /&gt;
							}&lt;br /&gt;
						endwhile;&lt;br /&gt;
						echo &#039;&lt;/p&gt;&#039;;</code></p>
<p>However when I look at the HTML source, there’s all this extra white space that is adding an extra space in the browser view.<br />
<code>&lt;p&gt;							&lt;a href=&quot;mysite&quot; title=&quot;TitleA&quot;&gt;TitleA&lt;/a&gt;&lt;br /&gt;
	, 							&lt;a href=&quot;mysite&quot; title=&quot;TitleB&quot;&gt;TitleB&lt;/a&gt;&lt;br /&gt;
	, 							&lt;a href=&quot;mysite&quot; title=&quot;TitleC&quot;&gt;TitleC&lt;/a&gt;&lt;br /&gt;
	&lt;/p&gt;	</code></p>
<p>So instead of my format looking like this: TitleA, TitleB, TitleC</p>
<p>There is extra space before the comma.<br />
TitleA , TitleB , TitleC</p>
<p>Is there something in wordpress php that is causing each Title link to go to a separate line? I would expect the source to look like this<br />
<code>&lt;p&gt;&lt;a href=&quot;mysite&quot; title=&quot;TitleA&quot;&gt;TitleA&lt;/a&gt;, &lt;a href=&quot;mysite&quot; title=&quot;TitleB&quot;&gt;TitleB&lt;/a&gt;, &lt;a href=&quot;mysite&quot; title=&quot;TitleC&quot;&gt;TitleC&lt;/a&gt;&lt;/p&gt;</code>
</p>
]]></description>
					</item>

	</channel>
</rss>
