summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/integration/TestXmlParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/TestXmlParser.cpp b/test/integration/TestXmlParser.cpp
index b9eae0e..a3d4563 100644
--- a/test/integration/TestXmlParser.cpp
+++ b/test/integration/TestXmlParser.cpp
@@ -179,8 +179,8 @@ static void xmlCharacterDataHandler(void *ref, const XML_Char *s, int len)
*(static_cast<std::shared_ptr<XmlNode> *>(XML_GetUserData(parser)));
// Store a new text node in the current node
- std::string text = Utils::trim(std::string(s, len));
- if (!text.empty()) {
+ std::string text = std::string(s, len);
+ if (Utils::hasNonWhitepaceChar(text)) {
std::shared_ptr<XmlNode> textNode =
std::make_shared<XmlNode>(node, "$text");
textNode->text = text;