summaryrefslogtreecommitdiff
path: root/source/fitz/stext-device.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-24 20:53:13 +0800
committerTor Andersson <tor.andersson@artifex.com>2016-10-24 17:38:58 +0200
commite4714719cf0bb14bee3cef85303526f4913f491f (patch)
treee379582aa4b305b86e98d353c9afe420373941e6 /source/fitz/stext-device.c
parent161b834c1933b9b61719c931dfd819622a588086 (diff)
downloadmupdf-e4714719cf0bb14bee3cef85303526f4913f491f.tar.xz
When not preserving stext whitespace, only emit space character.
Previously both a space character and the original whitespace character were emitted.
Diffstat (limited to 'source/fitz/stext-device.c')
-rw-r--r--source/fitz/stext-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c
index 5bf7b60b..eda71237 100644
--- a/source/fitz/stext-device.c
+++ b/source/fitz/stext-device.c
@@ -774,8 +774,8 @@ fz_add_stext_char(fz_context *ctx, fz_stext_device *dev, fz_stext_style *style,
case 0x200A: /* hair space */
case 0x202F: /* narrow no-break space */
case 0x205F: /* medium mathematical space */
- case 0x3000: /* ideographic spac */
- fz_add_stext_char_imp(ctx, dev, style, ' ', glyph, trm, adv, wmode);
+ case 0x3000: /* ideographic space */
+ c = ' ';
}
fz_add_stext_char_imp(ctx, dev, style, c, glyph, trm, adv, wmode);