1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #14266 from calixteman/bug931481

Don't consider space as real space when there is an extra spacing (bug 931481)
This commit is contained in:
Jonas Jenwald 2021-11-12 21:42:32 +01:00 committed by GitHub
commit 28fb3975eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 1 deletions

View file

@ -2573,7 +2573,8 @@ class PartialEvaluator {
(i === 0 ||
i + 1 === ii ||
glyphs[i - 1].unicode === " " ||
glyphs[i + 1].unicode === " ")
glyphs[i + 1].unicode === " " ||
extraSpacing)
) {
// Don't push a " " in the textContentItem
// (except when it's between two non-spaces chars),