diff options
-rw-r--r-- | poppler/TextOutputDev.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index 451b4cb6..10a3b5f3 100644 --- a/poppler/TextOutputDev.cc +++ b/poppler/TextOutputDev.cc @@ -4420,7 +4420,7 @@ GooString *TextSelectionDumper::getText() TextWordSelection *sel = (*lineWords)[j]; page->dumpFragment(sel->word->text + sel->begin, sel->end - sel->begin, uMap, text); - if (j < lineWords->size() - 1) + if (j < lineWords->size() - 1 && sel->word->spaceAfter) text->append(space, spaceLen); } if (i < nLines - 1) |