summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-10-21 16:22:45 +0200
committerTor Andersson <tor@ccxvii.net>2014-12-03 01:33:00 +0100
commit5fa0928ecd80b4b5b5eb5880cdb8c7096aa8bf46 (patch)
tree2eb7bb5c2b04d312b5f78a39e9e963af4eb09615 /source/fitz
parent8faeb5f359ca82cffe74a7dfc8d31a5e8d9dd899 (diff)
downloadmupdf-5fa0928ecd80b4b5b5eb5880cdb8c7096aa8bf46.tar.xz
xml: Don't emit empty text nodes between tags when preserving whitespace.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/xml.c b/source/fitz/xml.c
index bf36523a..a9d93eb8 100644
--- a/source/fitz/xml.c
+++ b/source/fitz/xml.c
@@ -406,7 +406,7 @@ static char *xml_parse_document_imp(struct parser *x, char *p)
parse_text:
mark = p;
while (*p && *p != '<') ++p;
- xml_emit_text(x, mark, p);
+ if (mark != p) xml_emit_text(x, mark, p);
if (*p == '<') { ++p; goto parse_element; }
return NULL;