diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-31 12:05:06 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-31 12:06:14 -0700 |
commit | 1ced4067aa152d40256bb318535374c08e4109b3 (patch) | |
tree | fbf5efacaeaed53db0dc37028a5c4d729128a81d /libs | |
parent | 007136cc23f83cc454f8e96bd22e7ea9966ee0f0 (diff) |
ensure that xmlKeepBlankDefault() is called early in instance-life, from PBD::init()
See comment for details on why
Diffstat (limited to 'libs')
-rw-r--r-- | libs/pbd/pbd.cc | 9 |
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; } |