Add trim to xml string parsing

kimkulling/trim_strings_in_xml_parsing_issue-5591
Kim Kulling 2024-06-10 22:18:09 +02:00
parent 8231d99a85
commit 430cbc5289
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define INCLUDED_AI_IRRXML_WRAPPER #define INCLUDED_AI_IRRXML_WRAPPER
#include <assimp/ai_assert.h> #include <assimp/ai_assert.h>
#include <assimp/StringUtils.h>
#include <assimp/DefaultLogger.hpp> #include <assimp/DefaultLogger.hpp>
#include "BaseImporter.h" #include "BaseImporter.h"
@ -447,6 +448,7 @@ inline bool TXmlParser<TNodeType>::getValueAsString(XmlNode &node, std::string &
} }
text = node.text().as_string(); text = node.text().as_string();
text = ai_trim(text);
return true; return true;
} }