Automattic / Automattic/cli-table

emoji gives wrong padding

Open
#171 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
141
PR merge metrics
No merged PRs in 30d

Description

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:

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

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.