-
Notifications
You must be signed in to change notification settings - Fork 20
Formatting Issue: Inconsistent display with commander.js and gradient-string #10
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
Comments
Hi @cdwmhcc Opening an issue without any greeting or explanation and just dumping a piece of code is disrespectful to the time of open-source maintainers. If you expect help, the least you can do is explain your problem properly and approach the conversation with some basic manners. I won’t be addressing this issue unless you provide proper context and communicate in a more respectful way. |
@bokub |
Hello! What happens if you use the same description but as a regular text instead of a gradient-colored one? |
I tried it and everything is normal and is a single line. Here is an online example: https://stackblitz.com/edit/stackblitz-starters-bjcnsv?file=index.js |
Description
Dear Developers, I am experiencing a formatting discrepancy when using gradient-string along with commander.js to create a command-line tool. The text outputted by console.log appears in color and on a single line as expected. However, the same text used in the description of a command in commander.js ends up being displayed over multiple lines.
Environment
Code Sample
Image
Expected Behavior
I expect the description in commander.js to maintain a single line display, similar to the console.log output.
Could this issue be related to how commander.js handles descriptions, or is it an issue with the way gradient-string processes the text? Thank you for your assistance!
The text was updated successfully, but these errors were encountered: