From 43528202767af9b4b380f9a99ea25897b6030e8d Mon Sep 17 00:00:00 2001 From: Bruno-Pier <50412835+BrunoB81HK@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:15:13 +0000 Subject: [PATCH] parse_yaml.py: keep the trailing newline --- .../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