Open mastrzyz opened 1 year ago
For some reason with the following code :
const baseColumns = [ ["๐งชaaaa", ""], ["A", "B"] ]; const config = { spanningCells: [{ col: 0, row: 0, colSpan: 2 }] }; console.log(table(baseColumns, config));
We get the following error from table : subjectWidth: 6 , containerwidth:5 node_modules/table/dist/src/alignString.js
if (subjectWidth > containerWidth) { throw new Error('Subject parameter value width cannot be greater than the container width.'); }
This does not repro if I remove the emoticon
const baseColumns = [ ["aaaaaaaaaaaaaaaaaaaaaa", ""], ["A", "B"] ]; const config = { spanningCells: [{ col: 0, row: 0, colSpan: 2 }] }; console.log(table(baseColumns, config));
output.
โโโโโโโโโ โ aaaaa โ โ aaaaa โ โ aaaaa โ โ aaaaa โ โ aa โ โโโโโฌโโโโข โ A โ B โ โโโโโงโโโโ
Note this also repros if I use colSpan instead of header.
For some reason with the following code :
We get the following error from table : subjectWidth: 6 , containerwidth:5 node_modules/table/dist/src/alignString.js
This does not repro if I remove the emoticon
output.
Note this also repros if I use colSpan instead of header.