Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs are not wrapped correctly #54

Open
Maxim-Mazurok opened this issue Apr 12, 2024 · 0 comments
Open

Tabs are not wrapped correctly #54

Maxim-Mazurok opened this issue Apr 12, 2024 · 0 comments

Comments

@Maxim-Mazurok
Copy link

Here's a reproduction:

const wrapAnsi = require('wrap-ansi');

const styledString = '\t\t\t\ttestingtesting';

console.log('1234556790');
console.log(wrapAnsi(styledString, 10, { hard: true, trim: false }));

This is what I get:

1234556790
                                testingtes
ting

This is what I expect:

1234556790
          
          
          
  testingtes
ting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant