printer: Add a newline after "else"

pull/11867/head
Xavier Claessens 1 year ago
parent c25f0b1d54
commit cbf23f5eba
  1. 1
      mesonbuild/ast/printer.py

@ -193,6 +193,7 @@ class AstPrinter(AstVisitor):
i.accept(self)
if not isinstance(node.elseblock, mparser.EmptyNode):
self.append('else', node)
self.newline()
node.elseblock.accept(self)
self.append('endif', node)

Loading…
Cancel
Save