Skip to content

table overflows and wraps screen even with word wrapping enabled #351

Closed
@benmccann

Description

The table isn't being fit to my screen even when word wrapping is on

Screenshot from 2024-06-23 14-35-00

Code to reproduce:

var Table = require('cli-table3');

// instantiate
var table = new Table({
    wordWrap: true,
    head: ['TH 1 label', 'TH 2 label'],
    colWidths: [100, 200]
});

// table is an Array, so you can `push`, `unshift`, `splice` and friends
table.push(
    ['First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value First value', 'Second value']
  , ['First value', 'Second value']
);

console.log(table.toString());

related #57

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions