From 4e30159ad7ffd59c0a15f421c3b49842badeb74d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 5 Feb 2018 12:04:15 +0100 Subject: Add FZ_DEBUG_HTML option to EPUB parser. --- source/html/html-layout.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/html') diff --git a/source/html/html-layout.c b/source/html/html-layout.c index d6f63975..802b8288 100644 --- a/source/html/html-layout.c +++ b/source/html/html-layout.c @@ -2700,6 +2700,11 @@ fz_parse_html(fz_context *ctx, fz_html_font_set *set, fz_archive *zip, const cha fz_rethrow(ctx); } +#ifndef NDEBUG + if (fz_atoi(getenv("FZ_DEBUG_XML"))) + fz_debug_xml(root, 0); +#endif + fz_try(ctx) { if (fz_xml_find(root, "FictionBook")) -- cgit v1.2.3