pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1606334 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Date Sat, 28 Jun 2014 12:43:40 GMT
Author: tilman
Date: Sat Jun 28 12:43:40 2014
New Revision: 1606334

URL: http://svn.apache.org/r1606334
Log:
PDFBOX-2160: write paragraph start before paragraph end if needed

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java?rev=1606334&r1=1606333&r2=1606334&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java Sat Jun
28 12:43:40 2014
@@ -1625,6 +1625,10 @@ public class PDFTextStripper extends PDF
      */
     protected void writeParagraphEnd() throws IOException
     {
+        if (!inParagraph)
+        {
+            writeParagraphStart();
+        }
         output.write(getParagraphEnd());
         inParagraph = false;
     }



Mime
View raw message