@pown/blessed
Advanced tools
+4
-6
@@ -107,11 +107,9 @@ const stripAnsi = require('strip-ansi') | ||
| fields.forEach((field='', index) => { | ||
| const size = this.columnWidths[index] | ||
| const strip = stripAnsi(field.toString()) | ||
| const len = field.toString().length - strip.length | ||
| field = stripAnsi(String(field)) | ||
| field = field.toString().substring(0, size + len) | ||
| const columnWidth = this.columnWidths[index] | ||
| // compensate for len | ||
| field = field.substring(0, columnWidth) | ||
| let spaceLength = size - strip.length + this.options.columnSpacing | ||
| let spaceLength = columnWidth - field.length + this.options.columnSpacing | ||
@@ -118,0 +116,0 @@ if (spaceLength < 0) { |
+1
-1
| { | ||
| "name": "@pown/blessed", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "Wrapper around neo-blessed plus supporting modules", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
4988
-1.77%120
-1.64%