Skip to content

Tabs are not wrapped correctly #54

@Maxim-Mazurok

Description

@Maxim-Mazurok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions