Skip to content

console.table splits long strings and breaks formatting in node v12 #27915

Closed
@kroleg

Description

@kroleg
  • Version: v12.0 and onwards (checked 12.3.1)
  • Platform: Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
  • Subsystem: console

Starting with node v12.0 console.table breaks table by splitting long strings with pluses and new lines.

You can easily reproduce it:

nvm install 12.0 # or nvm use 12.0
node -e "console.table([{name:'very long long long long long long long long long long long long long long long'}])" 

Снимок экрана 2019-05-26 в 22 19 31

nvm install 10.15.3 # or nvm use 10.15.3
node -e "console.table([{name:'very long long long long long long long long long long long long long long long'}])"

Снимок экрана 2019-05-26 в 22 19 58

nvm install 11.15.0 # or nvm use 11.15.0
node -e "console.table([{name:'very long long long long long long long long long long long long long long long'}])"

Снимок экрана 2019-05-26 в 22 18 57

Unfortunately i am not able to find a source of issue because code looks too complicated to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.consoleIssues and PRs related to the console subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions