mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Do a bit of bufferization in text mode, Daniel
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user