1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-11 12:58:16 +03:00

html: Fix areBlanks check

Short-lived regression from 71122421.
This commit is contained in:
Nick Wellnhofer 2025-03-09 16:21:13 +01:00
parent 98776424a8
commit 8873a49846

View File

@ -2973,7 +2973,7 @@ htmlCharDataSAXCallback(htmlParserCtxtPtr ctxt, const xmlChar *buf,
if ((mode == 0) &&
(!ctxt->keepBlanks) &&
(areBlanks(ctxt, buf, size))) {
(areBlanks(ctxt, buf, size) > 0)) {
if (ctxt->sax->ignorableWhitespace != NULL)
ctxt->sax->ignorableWhitespace(ctxt->userData, buf, size);
} else {