From 2894fe7b3551a9951ac50df40f5737f2be1cfa2c Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Thu, 15 Oct 2009 11:38:39 -0400 Subject: fix json tests --- shell/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/utils.js') diff --git a/shell/utils.js b/shell/utils.js index a56a17eac4b..d29dfcec762 100644 --- a/shell/utils.js +++ b/shell/utils.js @@ -343,7 +343,7 @@ tojson = function( x, indent , nolint ){ case "object":{ var s = tojsonObject( x, indent , nolint ); - if ( s.length < 70 && ( indent == null || indent.length == 0 ) ){ + if ( ( nolint == null || nolint == true ) && s.length < 70 && ( indent == null || indent.length == 0 ) ){ s = s.replace( /[\s\r\n ]+/gm , " " ); } return s; -- cgit v1.2.1