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