From 95464554aaadb9d8cac554ada84a4db9328793fa Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Fri, 11 Dec 2009 23:27:18 +0000 Subject: Futon: Show empty lists and objects in document view as [] and {}, respectively. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889856 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.format.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'share/www/script/futon.format.js') diff --git a/share/www/script/futon.format.js b/share/www/script/futon.format.js index 674f5f8f..601a91d3 100644 --- a/share/www/script/futon.format.js +++ b/share/www/script/futon.format.js @@ -72,6 +72,9 @@ } if (index >= 0) buf.push(options.linesep, tab.substr(options.indent)); buf.push("]"); + if (options.html) { + return "" + buf.join("") + ""; + } } else { buf.push("{"); @@ -94,6 +97,9 @@ } if (index >= 0) buf.push(options.linesep, tab.substr(options.indent)); buf.push("}"); + if (options.html) { + return "" + buf.join("") + ""; + } } return buf.join(""); -- cgit v1.2.3