diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-24 20:53:13 +0800 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-10-24 17:38:58 +0200 |
commit | e4714719cf0bb14bee3cef85303526f4913f491f (patch) | |
tree | e379582aa4b305b86e98d353c9afe420373941e6 /source/fitz | |
parent | 161b834c1933b9b61719c931dfd819622a588086 (diff) | |
download | mupdf-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')
-rw-r--r-- | source/fitz/stext-device.c | 4 |
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); |