You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
console.table splits long strings and breaks formatting in node v12 #27915
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'}])"
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'}])"
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'}])"
Unfortunately i am not able to find a source of issue because code looks too complicated to me.
Activity
addaleax commentedon May 26, 2019
@BridgeAR
devsnek commentedon May 26, 2019
another good reason to restore the previous formatting default
console: fix table() output
console: fix table() output