From 4dcee9c7f9e0451ffda6880f3ca32943fb7b1ab7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 30 Dec 2010 21:50:25 +0000 Subject: Separate all top-level expressions by a blank line. git-svn-id: http://svn.drobilla.net/resp/resp@378 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/pprint.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pprint.cpp b/src/pprint.cpp index 48debb1..ba29e3b 100644 --- a/src/pprint.cpp +++ b/src/pprint.cpp @@ -144,13 +144,11 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types) out << " "; print_to(out, *i++, child_indent, cenv, types); out << ")"; - newline(out, 0); } else if (form == "def-type") { out << (*i++); newline(out, indent + 2); print_list(out, tup, i, indent + 2, cenv, types, false); - newline(out, 0); } else if (form == "fn") { // Print prototype (possibly with parameter type annotations) @@ -205,6 +203,9 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types) // Print on single line if list contains only atoms print_list_one_line(out, tup, i, indent + head_width, cenv, types, false); } + if (indent == 0) + newline(out, 0); + return out; } case T_BOOL: -- cgit v1.2.1