[poppler] poppler/TextOutputDev.cc
Adrian Johnson
ajohnson at kemper.freedesktop.org
Mon Mar 26 03:42:52 PDT 2012
poppler/TextOutputDev.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit a8b0fa4d07480242afba7751995e38eaf3147ac5
Author: Horst Prote <prote at fmi.uni-stuttgart.de>
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);
+ }
}
}
More information about the poppler
mailing list