]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codewriter: Append new-line for nested block statements
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 25 Jan 2021 20:14:17 +0000 (21:14 +0100)
vala/valacodewriter.vala

index cc2196347a231e8879841d0b32082fa9add129d3..0f624c0109b68bcae8d2ae7bb5f604d403fe4b1e 100644 (file)
@@ -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) {