mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
- Makefile.am xmlversion.h.in configure.in include/Makefile.am:
integrating catalogs - catalog.[ch] testCatalog.c: adding a small catalo API (only SGML catalog support). - parser.c: restaured xmlKeepBlanksDefault(0) API Daniel
This commit is contained in:
17
parser.c
17
parser.c
@ -2495,11 +2495,18 @@ get_more:
|
||||
}
|
||||
nbchar = in - ctxt->input->cur;
|
||||
if (nbchar > 0) {
|
||||
if (IS_BLANK(*ctxt->input->cur) &&
|
||||
areBlanks(ctxt, ctxt->input->cur, nbchar)) {
|
||||
if (ctxt->sax->ignorableWhitespace != NULL)
|
||||
ctxt->sax->ignorableWhitespace(ctxt->userData,
|
||||
ctxt->input->cur, nbchar);
|
||||
if (IS_BLANK(*ctxt->input->cur)) {
|
||||
const xmlChar *tmp = ctxt->input->cur;
|
||||
ctxt->input->cur = in;
|
||||
if (areBlanks(ctxt, tmp, nbchar)) {
|
||||
if (ctxt->sax->ignorableWhitespace != NULL)
|
||||
ctxt->sax->ignorableWhitespace(ctxt->userData,
|
||||
tmp, nbchar);
|
||||
} else {
|
||||
if (ctxt->sax->characters != NULL)
|
||||
ctxt->sax->characters(ctxt->userData,
|
||||
tmp, nbchar);
|
||||
}
|
||||
} else {
|
||||
if (ctxt->sax->characters != NULL)
|
||||
ctxt->sax->characters(ctxt->userData,
|
||||
|
Reference in New Issue
Block a user