Skip to content

emoji gives wrong padding #171

@arve0

Description

@arve0

I expected emojies to work, but ✅ for example gets extra padding:

┌─────────────┬───┬──────────────┐
│ First value │ ✅ │ Second value │
└─────────────┴───┴──────────────┘

Same result in Mac Terminal, VSCode terminal and iTerm.

Example code:

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

var table = new Table()
table.push(['First value', '✅', 'Second value'])
console.log(table.toString());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions