From 1ced4067aa152d40256bb318535374c08e4109b3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 31 Dec 2019 12:05:06 -0700 Subject: ensure that xmlKeepBlankDefault() is called early in instance-life, from PBD::init() See comment for details on why --- libs/pbd/pbd.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs') 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 @@ -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; } -- cgit v1.2.3