Skip to content

Commit 4a3436a

Browse files
authored
Keep trailing newlines in generated files
1 parent c118271 commit 4a3436a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

openapi_python_client/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ def __init__(
7474
else:
7575
loader = package_loader
7676
self.env: Environment = Environment(
77-
loader=loader, trim_blocks=True, lstrip_blocks=True, extensions=["jinja2.ext.loopcontrols"]
77+
loader=loader,
78+
trim_blocks=True,
79+
lstrip_blocks=True,
80+
extensions=["jinja2.ext.loopcontrols"],
81+
keep_trailing_newline=True,
7882
)
7983

8084
self.project_name: str = config.project_name_override or f"{utils.kebab_case(openapi.title).lower()}-client"

0 commit comments

Comments
 (0)