From 693149cb2f91497cea6ee998cb0f3be04db20af1 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 9 Apr 2014 19:07:35 +0400 Subject: [PATCH] Better formatting of generated headers --- libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py b/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py index 10c28fd68c..f2b9d977d4 100644 --- a/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py +++ b/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py @@ -191,6 +191,6 @@ def generate_one_type(t): template = Template(filename=TEMPLATE_FILENAME) text = template.render(t=t) text = '\n'.join(x.rstrip() for x in text.splitlines()) - text = text.replace('\n\n\n\n', '\n\n').replace('\n\n\n', '\n\n') + text = text.replace('\n\n\n\n\n', '\n\n').replace('\n\n\n\n', '\n\n').replace('\n\n\n', '\n\n') text = text.replace('{\n\n ', '{\n ') return text