diff --git a/README.md b/README.md index c336df3..fe96fed 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,10 @@ Please refer to our [How To Use](https://github.com/mad201802/db-tool/wiki/03-%E In case you encounter any problems, feel free to contact us via [email](md148@hdm-stuttgart.de) or open an [issue](https://github.com/mad201802/db-tool/issues/new/choose) on GitHub. +## Known bugs + +- Depending on which shell you use, the used color codes may not work (currently not working on Windows Command Prompt). This leads to weird characters in the output. + ## Contributing Handshake Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. diff --git a/src/main/java/de/dbtool/utils/TablePrinter.java b/src/main/java/de/dbtool/utils/TablePrinter.java index 4c8c999..30c15ed 100644 --- a/src/main/java/de/dbtool/utils/TablePrinter.java +++ b/src/main/java/de/dbtool/utils/TablePrinter.java @@ -38,11 +38,11 @@ public String getTableString(String title, List data) { int finalI = i; Column column = new Column(); - if (this.defaultLimitTextLength > 0) column.maxWidth(this.defaultLimitTextLength, OverflowBehaviour.ELLIPSIS_RIGHT); + if (this.defaultLimitTextLength > 0) column.maxWidth(this.defaultLimitTextLength, OverflowBehaviour.CLIP_RIGHT); column.dataAlign(HorizontalAlign.CENTER); columnData.add(column.with(c -> c[finalI])); } - Character[] borderStyles = AsciiTable.FANCY_ASCII; + Character[] borderStyles = AsciiTable.BASIC_ASCII; table += AsciiTable.getTable(borderStyles, data, columnData); return table;