From dce24493ff6017d585f4330d68a350277147b74a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 15 Sep 2020 18:23:09 +0300 Subject: [PATCH] bumped version + docs + notes... Signed-off-by: Alex A. Naanou --- object.js | 2 +- package.json | 2 +- test.js | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/object.js b/object.js index 27a1569..67709f2 100755 --- a/object.js +++ b/object.js @@ -86,7 +86,7 @@ function(text, tab_size, leading_tabs){ : leading_tabs) * tab_size // prepare text... - var tab = ' '.repeat(tab_size) + var tab = ' '.repeat(tab_size || 0) text = tab != '' ? text.replace(/\t/g, tab) : text diff --git a/package.json b/package.json index 649395f..4897d65 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-object", - "version": "5.2.6", + "version": "5.2.7", "description": "", "main": "object.js", "scripts": { diff --git a/test.js b/test.js index 561cb17..8804387 100755 --- a/test.js +++ b/test.js @@ -9,10 +9,8 @@ * - sub-instance * - callable * - .call(..) and friends +* - normalizeIndent(..)/normalizeTextIndent(..) -- tab_size values... * - object.mixout(..) -* - object.normalizeTextIndent(..) -* - object.doc`...` -* - object.text`...` * - callback STOP in object.mixins(..) * - props arg in object.values(..) * - RawInstance(..).toString() @@ -672,6 +670,7 @@ var cases = test.Cases({ assert(xx.call(null), 'xx.call(null)') }, + // XXX still need to test tab_size values (0, ...) text_cases: [ // sanity checks... { input: 'abc', @@ -684,7 +683,6 @@ var cases = test.Cases({ { input: `a c`, text: 'a\nc', - // XXX fail... doc: 'a\n c'}, { input: `a\nc`, text: 'a\nc',