1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2026-01-26 21:41:34 +03:00

parser: Document that XML_PARSE_NOBLANKS is broken

Long text content can generate multiple "characters" callbacks which can
lead to NOBLANKS removing whitespace in non-whitespace text nodes. So
the NOBLANKS option doesn't even work reliably with the pull parser.
This would be extremely hard to fix.

Unfortunately, `xmllint --format` relies on this option which is another
reason why this feature never really worked.
This commit is contained in:
Nick Wellnhofer
2025-01-31 14:55:29 +01:00
parent 40e423d6c2
commit 7a8722f557
2 changed files with 12 additions and 5 deletions

View File

@@ -283,6 +283,10 @@
environment variable controls the indentation. The default value is two
spaces " ").
</para>
<para>
Especially in the absence of a DTD, this feature has never worked reliably
and is fundamentally broken.
</para>
</listitem>
</varlistentry>