summaryrefslogtreecommitdiff
path: root/src/cppunit/XmlElement.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2003-03-11 20:13:59 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2003-03-11 20:13:59 +0000
commitec3067809b09107fac6e4e53d94adbe3e9f3de9b (patch)
tree38dd68e4c2baa8e56ce7a0be5fe5ddc0ed335099 /src/cppunit/XmlElement.cpp
parent6e886d2f1ec0a52a32858e7aa374f031506573d7 (diff)
downloadcppunit-ec3067809b09107fac6e4e53d94adbe3e9f3de9b.tar.gz
Src/cppunit/XmlElement.
src/cppunit/XmlElement.cpp: * src/examples/CppUnitTest/XmlUniformser.cpp: fixed bug #676505 (no space between attributes of XmlElement).
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 += "=\"";