feature #2050: Pretty print json when updating a template

This commit is contained in:
Daniel Molina committed 2013-05-30 12:42:31 +02:00
1 parent b5b33c2936
commit 23474f17a7
1 file changed
+1 -1
+1 -1
View File
@@ -422,7 +422,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
document_hash = JSON.parse(response.body)
template = document_hash['DOCUMENT']['TEMPLATE']['BODY']
tmp << template.to_json
tmp << JSON.pretty_generate(template)
tmp.flush
editor_path = ENV["EDITOR"] ? ENV["EDITOR"] : EDITOR_PATH