mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
30.16.2008 4b7d1cff9107cfbdb2f49d564c152ca48ba6e05b
Fix for issue #3210
If it's the last cell of the raw, don't add padding
1 files modified
9 ■■■■ changed files
opends/src/server/org/opends/server/util/table/TextTablePrinter.java 9 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/util/table/TextTablePrinter.java
@@ -221,8 +221,13 @@
          builder.append(head);
          // Now pad with extra space to make up the width.
          for (int j = head.length(); j < width; j++) {
            builder.append(' ');
          // Only if it's not the last cell (see issue #3210)
          if (i != currentRow.size() - 1)
          {
            for (int j = head.length(); j < width; j++)
            {
              builder.append(' ');
            }
          }
          // Update the row contents.