From 2734b70374dfc8aa8d0cdaaff41bf095b4d5de81 Mon Sep 17 00:00:00 2001 From: Bruno-Pier <50412835+BrunoB81HK@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:31:41 -0500 Subject: [PATCH] parse_yaml.py: keep the trailing newline (#159) --- .../generate_parameter_library_py/parse_yaml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generate_parameter_library_py/generate_parameter_library_py/parse_yaml.py b/generate_parameter_library_py/generate_parameter_library_py/parse_yaml.py index ad92c79..c32c3a3 100644 --- a/generate_parameter_library_py/generate_parameter_library_py/parse_yaml.py +++ b/generate_parameter_library_py/generate_parameter_library_py/parse_yaml.py @@ -870,6 +870,9 @@ def __str__(self): # ), } - j2_template = Template(GenerateCode.templates['parameter_library_header']) + j2_template = Template( + GenerateCode.templates['parameter_library_header'], + keep_trailing_newline=True, + ) code = j2_template.render(data, trim_blocks=True) return code