Skip to content

Commit 5dc4e57

Browse files
committed
Preserve trailing whitespace in rendered templates
1 parent c316c78 commit 5dc4e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helpers/generate_modules/generate_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def main(argv):
6666
module.template_options(BASE_TEMPLATE_OPTIONS)
6767
)
6868
with open(os.path.join(module.path, template_file), "w") as f:
69-
f.write(rendered.rstrip())
69+
f.write(rendered)
7070
if template_file.endswith(".tf"):
7171
subprocess.call(
7272
[

0 commit comments

Comments
 (0)