pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1647090 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Date Sun, 21 Dec 2014 06:24:41 GMT
Author: tilman
Date: Sun Dec 21 06:24:41 2014
New Revision: 1647090

URL: http://svn.apache.org/r1647090
Log:
PDFBOX-2576: slight reformat

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=1647090&r1=1647089&r2=1647090&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 Sun Dec
21 06:24:41 2014
@@ -463,7 +463,7 @@ public class PDFTextStripper extends PDF
                 if(useCustomQuicksort) 
                 {
                     QuickSort.sort( textList, comparator );
-                } 
+                }
                 else 
                 {
                     Collections.sort( textList, comparator );
@@ -499,7 +499,8 @@ public class PDFTextStripper extends PDF
                             dir == Character.DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE)
                     {
                         ltrCount++;
-                    } else if (dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT ||
+                    }
+                    else if (dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT ||
                             dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC ||
                             dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING ||
                             dir == Character.DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE)
@@ -560,7 +561,8 @@ public class PDFTextStripper extends PDF
                     positionY = position.getYDirAdj();
                     positionWidth = position.getWidthDirAdj();
                     positionHeight = position.getHeightDir();
-                } else
+                }
+                else
                 {
                     positionX = position.getX();
                     positionY = position.getY();
@@ -578,12 +580,14 @@ public class PDFTextStripper extends PDF
                 if (wordSpacing == 0 || wordSpacing == Float.NaN)
                 {
                     deltaSpace = Float.MAX_VALUE;
-                } else
+                }
+                else
                 {
                     if (lastWordSpacing < 0)
                     {
                         deltaSpace = wordSpacing * getSpacingTolerance();
-                    } else
+                    }
+                    else
                     {
                         deltaSpace = (wordSpacing + lastWordSpacing) / 2f * getSpacingTolerance();
                     }
@@ -597,7 +601,8 @@ public class PDFTextStripper extends PDF
                 if (previousAveCharWidth < 0)
                 {
                     averageCharWidth = positionWidth / wordCharCount;
-                } else
+                }
+                else
                 {
                     averageCharWidth = (previousAveCharWidth + positionWidth / wordCharCount)
/ 2f;
                 }
@@ -611,7 +616,8 @@ public class PDFTextStripper extends PDF
                     if (deltaCharWidth > deltaSpace)
                     {
                         expectedStartOfNextWordX = endOfLastTextX + deltaSpace;
-                    } else
+                    }
+                    else
                     {
                         expectedStartOfNextWordX = endOfLastTextX + deltaCharWidth;
                     }
@@ -1431,13 +1437,13 @@ public class PDFTextStripper extends PDF
             if (lastPosition.isArticleStart()) 
             {
                 writeParagraphStart();
-            } 
+            }
             else 
             {
                 writeLineSeparator();
                 writeParagraphSeparator();
             }
-        } 
+        }
         else 
         {
             writeLineSeparator();



Mime
View raw message