summaryrefslogtreecommitdiff
path: root/src/cppunit/XmlElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppunit/XmlElement.cpp')
-rw-r--r--src/cppunit/XmlElement.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cppunit/XmlElement.cpp b/src/cppunit/XmlElement.cpp
index 88c4746..cdaaa69 100644
--- a/src/cppunit/XmlElement.cpp
+++ b/src/cppunit/XmlElement.cpp
@@ -176,6 +176,9 @@ XmlElement::attributesAsString() const
Attributes::const_iterator itAttribute = m_attributes.begin();
while ( itAttribute != m_attributes.end() )
{
+ if ( !attributes.empty() )
+ attributes += " ";
+
const Attribute &attribute = *itAttribute++;
attributes += attribute.first;
attributes += "=\"";