Closed larswaechter closed 1 year ago
(Leading) empty spaces in a cell should be removed. That happens especially if the next character after a line break is an empty space.
An example:
const data = [['abcdefghijklmnopqrstu', 'abcdefghijklmno pqrstu']]; const table = new Table(data, { header: { width: 15 } }); table.print();
Output: (wrong)
0 1 ====================================== abcdefghijklmno abcdefghijklmno pqrstu pqrstu
As you can see, the empty space before 'p' should be removed.
Correct:
(Leading) empty spaces in a cell should be removed. That happens especially if the next character after a line break is an empty space.
An example:
Output: (wrong)
As you can see, the empty space before 'p' should be removed.
Correct: