Preserve whitespace by default?
https://github.com/timoxley/columnify/blob/master/index.js#L89
Why does it collapse whitespace other than newlines?
Once I got rid of that option in my local copy, I also traced whitespace trimming to: https://github.com/timoxley/columnify/blob/master/utils.js#L83
Why does it collapse whitespace other than newlines?
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.