]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed illegal tab character
authorJeremias Maerki <jeremias@apache.org>
Wed, 16 Jun 2004 21:29:33 +0000 (21:29 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 16 Jun 2004 21:29:33 +0000 (21:29 +0000)
Removed some of the checkstyle warnings while at it.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197719 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/TraitSetter.java
src/java/org/apache/fop/render/pdf/PDFRenderer.java

index ee515ee21d847ac8c448c5955c5f1c47b97d5058..005e00b7bec63e893104c85070288a23ae7c81c3 100644 (file)
@@ -185,23 +185,23 @@ public class TraitSetter {
     public static void addMargins(Area curBlock,
                                   CommonBorderAndPadding bpProps,
                                   CommonMarginBlock marginProps) {
-        int spaceStart = marginProps.startIndent -
-                            bpProps.getBorderStartWidth(false) -
-                            bpProps.getPaddingStart(false);
+        int spaceStart = marginProps.startIndent 
+                            - bpProps.getBorderStartWidth(false)
+                            bpProps.getPaddingStart(false);
         if (spaceStart != 0) {
             curBlock.addTrait(Trait.SPACE_START, new Integer(spaceStart));
         }
 
-        int spaceEnd = marginProps.endIndent -
-                           bpProps.getBorderEndWidth(false) -
-                           bpProps.getPaddingEnd(false);
+        int spaceEnd = marginProps.endIndent
+                            - bpProps.getBorderEndWidth(false)
+                            - bpProps.getPaddingEnd(false);
         if (spaceEnd != 0) {
             curBlock.addTrait(Trait.SPACE_END, new Integer(spaceEnd));
         }
     }
 
     public static void addBreaks(Area curArea, LayoutProps layoutProps) {
-       curArea.addTrait(Trait.BREAK_AFTER, new Integer(layoutProps.breakAfter));
+        curArea.addTrait(Trait.BREAK_AFTER, new Integer(layoutProps.breakAfter));
         curArea.addTrait(Trait.BREAK_BEFORE, new Integer(layoutProps.breakBefore));
     }
 }
index 5debef993b604aa66fe9300d14f304efdde388df..b542f23ce9c599fc8cb024772f4b61da282d4e70 100644 (file)
@@ -941,8 +941,8 @@ public class PDFRenderer extends PrintRenderer {
         int bl = currentBPPosition + bpMarginOffset + text.getOffset();
 
 /*        System.out.println("Text = " + text.getTextArea() +
-                       "; text width: " + text.getWidth() +
-               "; BlockIP Position: " + currentBlockIPPosition +
+            "; text width: " + text.getWidth() +
+            "; BlockIP Position: " + currentBlockIPPosition +
             "; currentBPPosition: " + currentBPPosition +
             "; offset: " + text.getOffset());
 */
@@ -954,14 +954,14 @@ public class PDFRenderer extends PrintRenderer {
             closeText();
 
             pdf.append("1 0 0 -1 " + (rx / 1000f) + " " + (bl / 1000f) + " Tm "
-                       + (text.getTextSpaceAdjust()/1000f) + " Tw [" + startText);
+                       + (text.getTextSpaceAdjust() / 1000f) + " Tw [" + startText);
             prevWordY = bl;
             textOpen = true;
         } else {
                 closeText();
 
                 pdf.append("1 0 0 -1 " + (rx / 1000f) + " " + (bl / 1000f) + " Tm "
-                           + (text.getTextSpaceAdjust()/1000f) + " Tw [" + startText);
+                           + (text.getTextSpaceAdjust() / 1000f) + " Tw [" + startText);
                 textOpen = true;
         }
         prevWordWidth = text.getWidth();