sindresorhus/boxen

Table border wrongly formatted

Opened this issue · 6 comments

When printing items with colors, the border gets wrongly rendered:

image

Is there any workaround for this?

PS: I'm using Chalk for the text coloring.

Hi, thanks for sharing this issue.

I couldn't reproduce this issue on my side. My guess is that you used tabs in your text string, most probable if you used string literals. If that's the case then I recommend using spaces instead because space has a defined width.

If that doesn't fix the issue, could you please provide the code that you used ?

Thanks

@marcospassos Hi, it looks like you did not respond to the issue. I will soon close this issue for inactivity.

@Caesarovich, I'm not using tabs, just space. I'm checking if it is not a version conflict that is making the project use an older version.

Hi @marcospassos , I'm coming back on this issue. I still can't reproduce on my side.

Maybe the emoji cause this.

image

@magicdawn To be fair emojis are not aligned by your terminal at all, so this is not an issue with this library.

For this issue to be open it needs a repro and details about your terminal.