Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent subsequent lines for list-libs output #31

Open
quapka opened this issue Jul 24, 2024 · 1 comment
Open

Indent subsequent lines for list-libs output #31

quapka opened this issue Jul 24, 2024 · 1 comment

Comments

@quapka
Copy link
Collaborator

quapka commented Jul 24, 2024

When the parts of the command list-libs output contains too many things (such as for Curves: or Signatures: for BouncyCastle) it overflows the line and from the second line the output is not indented.

@J08nY
Copy link
Member

J08nY commented Jul 24, 2024

Dude, this looks simple but can become such a stupidly complicated thing. To do this, you need to know where to wrap the line, for that you need to know the size of the terminal and that gets tricky. Also just outputting this as is is the correct thing to do, as then the terminal can handle line-breaks itself and if someone wants to parse the items out of the output they just can.

Edit (from https://stackoverflow.com/questions/1286461/can-i-find-the-console-width-with-java):
image

@J08nY J08nY added the wontfix label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants