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

Newline not allowed in column data #29

Closed
shellscape opened this issue Dec 9, 2016 · 1 comment
Closed

Newline not allowed in column data #29

shellscape opened this issue Dec 9, 2016 · 1 comment

Comments

@shellscape
Copy link

Considering the following row array:

let rows = [
  [chalk.blue('foobar'), 'The quick brown fox'],
  [chalk.blue('barbaz'), 'Jumps over\nthe lazy dog'],
  [chalk.blue('lorem'), 'ipsum']
];

Calling table results in the following error: Error: Table data must not contain control characters.

Checked the readme and there's nothing about this error. Does this module restrict newlines (and other control characters) in column values, or am I missing something and am a big dummy?

@gajus
Copy link
Owner

gajus commented Dec 9, 2016

Checked the readme and there's nothing about this error. Does this module restrict newlines (and other control characters) in column values, or am I missing something and am a big dummy?

It does.

See #9

@gajus gajus closed this as completed Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants