[gs-commits] mupdf 1.16.1.72 Fix fragment handling in parsing HTML.
[email protected] (Robin Watts) Thu, 3 Oct 2019 15:19:03 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 0a463c5252aa50c0f7efd77262164a9f3c69334c Author: Robin Watts <[email protected]> Date: Tue Oct 1 17:05:52 2019 +0100 Fix fragment handling in parsing HTML. Once we've collated the text for a given set of nodes (from 'flow' to 'end') into 'buffer', and detected the fragments from them, ensure that we move 'flow' to 'end', so that the next set of text we collect is processed with the correct node pointer. diff --git a/source/html/html-parse.c b/source/html/html-parse.c index 761d148..f7af9fd 100644 --- a/source/html/html-parse.c +++ b/source/html/html-parse.c @@ -1203,6 +1203,7 @@ detect_flow_directionality(fz_context *ctx, fz_pool *pool, uni_buf *buffer, fz_b data.flow = flow; data.buffer = buffer; fz_bidi_fragment_text(ctx, buffer->data, buffer->len, &bidi_dir, fragment_cb, &data, 0 /* Flags */); + flow = end; } return bidi_dir; } http://git.ghostscript.com/?p=mupdf.git;a=commit;h=0a463c5252aa50c0f7efd77262164a9f3c69334c -- MuPDF library Artifex Software, Inc.