-
Notifications
You must be signed in to change notification settings - Fork 30
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
Preserve whitespace by default? #37
Comments
Once I got rid of that option in my local copy, I also traced whitespace trimming to: |
Does it by default because it's trying to format dirty data as prettily as possible, Though I think I have been bitten by this before, trying to display some data that was pre-formatted. Can you elaborate on your use-case? |
@timoxley displaying pre-formatted data, where leading whitespace is relevant |
This would be great to allow a preserveWhitespace option! |
Agreed, whitespace is a must for pre-formatted tables. |
If no one is working on this, I can try to do a preserveWhitespace option. |
https://github.com/timoxley/columnify/blob/master/index.js#L89
Why does it collapse whitespace other than newlines?
The text was updated successfully, but these errors were encountered: