[xml] xmlKeepBlanksDefault() behavior



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

While trying to figure out what does xmlKeepBlanksDefault() exactly do, I 
noticed a behavior which looks non-consistant to me.

xmlKeepBlanksDefault(val) does :

        xmlKeepBlanksDefaultValue = val
and
        xmlIndentTreeOutput = !val.

But the default value is 1 for both variables.

I saw in the mailing-list archive that xmlIndentTreeOutput is considered as a 
'remain from the past', so it has been set to 1 by default.
The message I'm refering to is
http://mail.gnome.org/archives/xml/2002-May/msg00176.html

If what this mail says is still right, I'd suggest to let is set to 1 all the 
time, since we can't remove it without breaking the API.
This way the behavior of xmlKeepBlanksDefault(xmlKeepBlanksDefault(0)) would 
be more logical, and the format parameter of output function more easy to 
use.

Best regards,

Christophe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+xNoSB+sU3TyOQjARAkJtAJ9F4LfDQTCiuLOKQC6uVh7TnRNaTQCfZygi
4tiDg672lGnh21Bm5C/+ZhM=
=5SuL
-----END PGP SIGNATURE-----




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]