From 430cbc5289b3fe4819b37daa9ba2872e577083c6 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 10 Jun 2024 22:18:09 +0200 Subject: [PATCH] Add trim to xml string parsing --- include/assimp/XmlParser.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/assimp/XmlParser.h b/include/assimp/XmlParser.h index 4c19098a4..d7038e358 100644 --- a/include/assimp/XmlParser.h +++ b/include/assimp/XmlParser.h @@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define INCLUDED_AI_IRRXML_WRAPPER #include +#include #include #include "BaseImporter.h" @@ -447,6 +448,7 @@ inline bool TXmlParser::getValueAsString(XmlNode &node, std::string & } text = node.text().as_string(); + text = ai_trim(text); return true; }