summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/pbd/pbd.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/pbd/pbd.cc b/libs/pbd/pbd.cc
index d453468f3c..8b55692e80 100644
--- a/libs/pbd/pbd.cc
+++ b/libs/pbd/pbd.cc
@@ -36,6 +36,7 @@
#include "pbd/id.h"
#include "pbd/enumwriter.h"
#include "pbd/fpu.h"
+#include "pbd/xml++.h"
#ifdef PLATFORM_WINDOWS
#include <winsock2.h>
@@ -130,6 +131,14 @@ PBD::init ()
set_debug_options_from_env ();
+ /* this call is made by any call to XMLTree::read() and its cousins. It
+ sets the handling of blank space to match the libxml2 standard,
+ rather than the libxml1 version. Without this, the behavior is
+ defined by whoever calls it first.
+ */
+
+ xmlKeepBlanksDefault (0);
+
libpbd_initialized = true;
return true;
}