poppler/TextOutputDev.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit a8b0fa4d07480242afba7751995e38eaf3147ac5 Author: Horst Prote <[email protected]> Date: Mon Mar 26 21:04:32 2012 +1030 don't add newline to last line extracted by TextSelectionDumper Bug 45955 diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc index 531617d..f17f8cb 100644 --- a/poppler/TextOutputDev.cc +++ b/poppler/TextOutputDev.cc @@ -4166,7 +4166,9 @@ GooString *TextSelectionDumper::getText (void) // not a table else { page->dumpFragment (frag->line->text + frag->start, frag->len, uMap, s); - s->append (eol, eolLen); + if (i < nFrags - 1) { + s->append (eol, eolLen); + } } } _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
