improve text node xml

This commit is contained in:
2019-11-29 02:17:54 +01:00
parent c6173987af
commit 26257e5a37
5 changed files with 59 additions and 28 deletions

View File

@@ -59,7 +59,7 @@ bool LayoutManager::parse(const std::string& xml_string) noexcept
{
auto old = std::move(m_layouts);
tinyxml2::XMLDocument xml;
tinyxml2::XMLDocument xml(true, tinyxml2::COLLAPSE_WHITESPACE);
auto ret = xml.Parse(xml_string.c_str(), xml_string.size());
if (ret != tinyxml2::XMLError::XML_SUCCESS)
{