From afad873a22490f7d56864b07d63fdd06d5883521 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 23 Apr 2020 02:27:04 +0200 Subject: [PATCH] Fix parsing XML with blanks from memory This is needed when the butler thread loads a plugin with MIDNAM. xmlKeepBlanksDefault() setting is per thread. see also df3a4ed9c61d --- libs/pbd/xml++.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/pbd/xml++.cc b/libs/pbd/xml++.cc index bb2dd3e7ca..378ccd7b4f 100644 --- a/libs/pbd/xml++.cc +++ b/libs/pbd/xml++.cc @@ -133,6 +133,8 @@ XMLTree::read_buffer (char const* buffer, bool to_tree_doc) delete _root; _root = 0; + xmlKeepBlanksDefault(0); + doc = xmlParseMemory (buffer, strlen(buffer)); if (!doc) { return false;