lib/fig/statement/configuration.rb in fig-0.1.69 vs lib/fig/statement/configuration.rb in fig-0.1.71
- old
+ new
@@ -42,9 +42,12 @@
private
def unparse_statements(indent, prefix, statements, suffix)
body =
@statements.map {|statement| statement.unparse(indent + ' ') }.join("\n")
+ if body.length > 0
+ body << "\n"
+ end
- return ["\n#{indent}#{prefix}", body, "#{indent}#{suffix}"].join("\n")
+ return "\n#{indent}#{prefix}\n#{body}#{indent}#{suffix}"
end
end