Skip to content

Commit

Permalink
Merge pull request #57 from mad201802/develop
Browse files Browse the repository at this point in the history
Added known bugs to readme. Use simple ASCII for table printing
  • Loading branch information
mad201802 authored Aug 15, 2023
2 parents 64886bb + 29fb35d commit de22d20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <img src="https://raw.githubusercontent.com/Tarikul-Islam-Anik/Animated-Fluent-Emojis/master/Emojis/Hand%20gestures/Handshake.png" alt="Handshake" width="25" height="25" style="transform: translateY(5px)" />

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/dbtool/utils/TablePrinter.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public String getTableString(String title, List<String[]> 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;
Expand Down

0 comments on commit de22d20

Please sign in to comment.