From: Vincent Hennebert Date: Tue, 27 Feb 2007 14:50:52 +0000 (+0000) Subject: Add log messages to help understand the code X-Git-Tag: fop-0_94~204 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1072e70fb74b67ecefe006ab3880e8201f6e2e2d;p=xmlgraphics-fop.git Add log messages to help understand the code git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@512266 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java index b8e34ba63..2b36fe7a6 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableStepper.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableStepper.java @@ -192,7 +192,7 @@ public class TableStepper { for (int i = activeRow + 1; i < rowGroup.length; i++) { maxW += rowGroup[i].getHeight().opt; } - //log.debug("maxRemainingHeight=" + maxW); + log.debug("maxRemainingHeight=" + maxW); return maxW; } @@ -238,6 +238,7 @@ public class TableStepper { borderBefore[column] = pgu.getBorders().getBorderBeforeWidth(false); } else { borderBefore[column] = pgu.getBorders().getBorderBeforeWidth(false) / 2; + log.trace("border before for column " + column + ": " + borderBefore[column]); } paddingBefore[column] = pgu.getBorders().getPaddingBefore(false, pgu.getCellLM()); paddingAfter[column] = pgu.getBorders().getPaddingAfter(false, pgu.getCellLM()); @@ -247,6 +248,8 @@ public class TableStepper { startRow[column] = activeRow; keepWithNextSignals[column] = false; forcedBreaks[column] = false; + } else { + log.trace("TableStepper.setupElementList: not empty nor primary grid unit"); } } @@ -541,8 +544,8 @@ public class TableStepper { } } if (log.isTraceEnabled()) { - log.trace("borders before=" + borderBefore[i] + " after=" + borderAfter[i]); - log.trace("padding before=" + paddingBefore[i] + " after=" + paddingAfter[i]); + log.trace("column " + i + ": borders before=" + borderBefore[i] + " after=" + borderAfter[i]); + log.trace("column " + i + ": padding before=" + paddingBefore[i] + " after=" + paddingAfter[i]); } } if (seqCount == 0) { @@ -601,7 +604,7 @@ public class TableStepper { } } if (log.isDebugEnabled()) { - /*StringBuffer*/ sb = new StringBuffer(); + /*StringBuffer*/ sb = new StringBuffer("[col nb: start-end(width)] "); for (int i = 0; i < widths.length; i++) { if (end[i] >= start[i]) { sb.append(i + ": " + start[i] + "-" + end[i] + "(" + widths[i] + "), ");