From e4714719cf0bb14bee3cef85303526f4913f491f Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 24 Oct 2016 20:53:13 +0800 Subject: When not preserving stext whitespace, only emit space character. Previously both a space character and the original whitespace character were emitted. --- source/fitz/stext-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz/stext-device.c') 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); -- cgit v1.2.3