Fix trailing newline getting dropped
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
1f1a34a226
commit
fe4ce6dfa2
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ import jinja2
|
|||
def render(tpl_path):
|
||||
path, filename = os.path.split(tpl_path)
|
||||
return jinja2.Environment(
|
||||
loader=jinja2.FileSystemLoader(path or './')
|
||||
loader=jinja2.FileSystemLoader(path or './'),
|
||||
keep_trailing_newline=True,
|
||||
).get_template(filename).render()
|
||||
|
||||
n = len(sys.argv)
|
||||
|
|
Loading…
Reference in a new issue