]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/DataTable.java
removed debug output
[gigi.git] / src / org / cacert / gigi / output / DataTable.java
index 6c36effe9e3cdf7cb0c1a2291086bbaeb5394922..fb4f4da6f3baab60d1ed319c63deb886c5bf34da 100644 (file)
@@ -24,11 +24,10 @@ public class DataTable implements Outputable {
                }
                out.println("<table align=\"center\" valign=\"middle\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"wrapper\">");
                int cellsRendered = 0;
-               for (int i = 0; i < mesCells / columnCount; i++) {
+               for (int i = 0; i < (mesCells / columnCount) - 1; i++) {
                        out.println("<tr>");
                        for (int j = 0; j < columnCount;) {
-                               Cell current = cells.get(cellsRendered);
-                               cellsRendered++;
+                               Cell current = cells.get(cellsRendered++);
                                j += current.getColSpan();
                                out.println("<td " + current.getHtmlAttribs() + " >");
                                out.print(current.shouldTranslate() ? l.getTranslation(current