move call to xmlKeepBlanksDefault(0) to before the creation of an XML parser context
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 6 Jan 2020 00:49:35 +0000 (17:49 -0700)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 6 Jan 2020 00:58:54 +0000 (17:58 -0700)
commitdf3a4ed9c61d7e51db9f7cde5675ad8d4590135a
treee7ddfee6e155bc683195e526856a92503ca8c49c
parent7570b9a594c6a6072394ea68a43433fe1466bf0f
move call to xmlKeepBlanksDefault(0) to before the creation of an XML parser context

the value is used by the parser context; the old code called it only after the *first* parser context
was created. therefore the first XMLTree::read() call has its behavior determined by libxml2's default
for this value, rather than by our explicit choice (do not treat whitespace as a note). All subequent
read() calls will use our value.

This variable inside libxml2 is actually per-thread, which just increases the stakes for calling
xmlKeepBlanksDefault() at the right time
libs/pbd/xml++.cc