console-table-printer
console-table-printer copied to clipboard
newlines in cells produce newlines in table
Example:
const p = new Table();
p.addRows([{ col1: 'col1', col2: `col\n2`, col3: 'col3' }]);
p.printTable();
produce:
┌──────┬──────┬──────┐
│ col1 │ col2 │ col3 │
├──────┼──────┼──────┤
│ col1 │ col
2 │ col3 │
└──────┴──────┴──────┘
expect:
┌──────┬──────┬──────┐
│ col1 │ col2 │ col3 │
├──────┼──────┼──────┤
│ col1 │ col2 │ col3 │
│ │ 2 │ │
└──────┴──────┴──────┘
Considering this an edge case the solution might take some time to implement. But Prs are welcome
:tada: This issue has been resolved in version 2.12.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: