From 9670e51e9e3115d0777caaec9c94feb2ae1cf483 Mon Sep 17 00:00:00 2001 From: Dan Rasband Date: Thu, 13 Mar 2014 08:38:28 -0600 Subject: [PATCH] Another iteration of pretty print --- lib/cfndsl/CloudFormationTemplate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cfndsl/CloudFormationTemplate.rb b/lib/cfndsl/CloudFormationTemplate.rb index af5d1b20..5e5038a3 100644 --- a/lib/cfndsl/CloudFormationTemplate.rb +++ b/lib/cfndsl/CloudFormationTemplate.rb @@ -13,7 +13,7 @@ def initialize end def generateOutput() - puts self.to_json {:space => ' ', :indent => ' ', :object_nl => "\n", :array_nl => "\n" } + puts JSON.pretty_generate(self) end @@globalRefs = {