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

Preserve All Whitespace #45

Open
shellscape opened this issue Dec 8, 2016 · 2 comments
Open

Preserve All Whitespace #45

shellscape opened this issue Dec 8, 2016 · 2 comments

Comments

@shellscape
Copy link

Since the module doesn't have configuration (ala text-table) for leading whitespace or space between columns, collapsing all whitespace is problematic. We're left to hack around it by splitting lines for leading whitespace, and we're hosed if we want to configure the whitespace between columns. We can't always know what the minimum width of a column should be, after all.

An option to either preserve (eg. not collapse) whitespace or options for leading and between-column whitespace is sorely needed.

@bradennapier
Copy link

Personally I would simply like a padding on the entire column. AKA: add \t\t at the start of every line so that the columns can appear indented on the screen when needed.

@vsinha
Copy link

vsinha commented Dec 8, 2017

Found a hack which works!

dataTransform: (s: string) => s.replace(" ", "\u2063")

\u2063 is an 'invisible separator' (ie an invisible comma) and is not matched by the \s regex here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants