From ef1a8a72160bd31940a269e5fe75e4fcf0ff8017 Mon Sep 17 00:00:00 2001 From: Janis Streib Date: Fri, 27 Jun 2014 02:09:16 +0200 Subject: [PATCH 1/1] Updated html attribute handling in DataTable --- src/org/cacert/gigi/output/DataTable.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/org/cacert/gigi/output/DataTable.java b/src/org/cacert/gigi/output/DataTable.java index 60893b04..3f131a22 100644 --- a/src/org/cacert/gigi/output/DataTable.java +++ b/src/org/cacert/gigi/output/DataTable.java @@ -29,8 +29,7 @@ public class DataTable implements Outputable { for (int j = 0; j < columnCount;) { Cell current = cells.get((i * columnCount) + j); j += current.getColSpan(); - out.println(""); + out.println(""); out.print(current.shouldTranslate() ? l.getTranslation(current .getText()) : current.getText()); out.print(""); @@ -40,12 +39,6 @@ public class DataTable implements Outputable { out.println(""); } - /** - * Note: All cells have the html attribute class="DataTD"! - * - * @author janis - * - */ public static class Cell { private String text, htmlAttribs; private boolean translate; @@ -64,11 +57,11 @@ public class DataTable implements Outputable { } public Cell(String text, boolean translate) { - this(text, translate, 1, ""); + this(text, translate, 1, "class=\"DataTD\""); } public Cell(String text, boolean translate, int colSpan) { - this(text, translate, colSpan, ""); + this(text, translate, colSpan, "class=\"DataTD\""); } public boolean shouldTranslate() { -- 2.39.2