1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-13 09:01:53 +03:00

Do a bit of bufferization in text mode, Daniel

This commit is contained in:
Daniel Veillard
2000-02-02 17:42:48 +00:00
parent 5feb8495f4
commit d0f7f74b47
3 changed files with 8 additions and 2 deletions

View File

@ -3527,7 +3527,8 @@ htmlParseChunk(htmlParserCtxtPtr ctxt, const char *chunk, int size,
fprintf(stderr, "HPP: pushed %d\n", size);
#endif
htmlParseTryOrFinish(ctxt, terminate);
if ((terminate) || (ctxt->input->buf->buffer->use > 80))
htmlParseTryOrFinish(ctxt, terminate);
} else if (ctxt->instate != XML_PARSER_EOF)
htmlParseTryOrFinish(ctxt, terminate);
if (terminate) {