mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-16 16:37:34 +08:00
Better formatting of generated headers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user