-
Notifications
You must be signed in to change notification settings - Fork 49
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
How to turn of line wrapping #19
Comments
For a start it would be good to be able to pass config to EDIT: This did not work. Looks like in |
Hey @vjpr, thanks for the suggestion. Since it's been a while since you opened this issue (sry for that), I'll wait to see if you still need it fixed. So, let me know. |
+1 for supporting an option to turn off line wrapping. It displays weird when the error message has too many words. e.g. var PrettyError = require('pretty-error');
var pe = new PrettyError();
var renderedError = pe.render(new Error('this is a looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong message'));
console.log(renderedError); it shows that: |
@AriaMinaei Thanks a lot |
@AriaMinaei This does work, however I have to react into the object to set it. Would be cool if PrettyError constructor took an options hash.
|
Another problem is that trying to add color with chalk to an error message will break the terminalWidth. |
I couldn't figure out a way to turn of line wrapping.
In CSS it would be
white-space: nowrap
, but its seems inRenderKid
you are setting a terminal width.My use case is that I am rendering urls which need to be clickable (using CMD + double-click on OSX). For this reason I cannot have line breaks in between urls.
The text was updated successfully, but these errors were encountered: