From: Rico Tzschichholz Date: Mon, 25 Jan 2021 20:11:55 +0000 (+0100) Subject: codewriter: Append new-line for nested block statements X-Git-Tag: 0.51.1~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc5a56e1959471d2a13011c4d407d336a261bf7c;p=thirdparty%2Fvala.git codewriter: Append new-line for nested block statements --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index cc2196347..0f624c010 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -978,6 +978,9 @@ public class Vala.CodeWriter : CodeVisitor { } write_end_block (); + if (b.parent_node is Block) { + write_newline (); + } } public override void visit_empty_statement (EmptyStatement stmt) {