Why do i get linebreaks?
<p>How can i make it in the same line?</p>

<p>It looks like:</p>

<pre><code>You see a closed door.
It belongs to house 'Magician's Alley 
5a'. 
Nobody owns this house.
</code></pre>

<p>But I want it to look like:</p>

<pre><code>You see a closed door. It belongs to house 'Magician's Alley 5a'. Nobody owns this house.
</code></pre>

<p>the code:</p>

<pre><code>void House::updateDoorDescription()
{
std::stringstream houseDescription;
houseDescription &lt;&lt; "It belongs to house '" &lt;&lt; houseName &lt;&lt; "'. " &lt;&lt; std::endl;

if(houseOwner != 0){
    houseDescription &lt;&lt; houseOwnerName;
}
else{
    houseDescription &lt;&lt; "Nobody";
}
houseDescription &lt;&lt; " owns this house." &lt;&lt; std::endl;

HouseDoorList::iterator it;
for(it = doorList.begin(); it != doorList.end(); ++it){
    (*it)-&gt;setSpecialDescription(houseDescription.str());
}
}
</code></pre>
