1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- parser.c: Stephan Kulow also raised the fact that line number

could get miscounted making debug harder, fixed the problem
  in xmlParseCharData()
Daniel
This commit is contained in:
Daniel Veillard
2001-06-17 17:58:17 +00:00
parent 64b98c0ab4
commit 3ed27bdef0
2 changed files with 10 additions and 0 deletions

View File

@ -2509,10 +2509,14 @@ get_more:
ctxt->sax->characters(ctxt->userData,
tmp, nbchar);
}
line = ctxt->input->line;
col = ctxt->input->col;
} else {
if (ctxt->sax->characters != NULL)
ctxt->sax->characters(ctxt->userData,
ctxt->input->cur, nbchar);
line = ctxt->input->line;
col = ctxt->input->col;
}
}
ctxt->input->cur = in;