diff --git a/src/bmm-skills/4-implementation/bmad-quick-dev/render.py b/src/bmm-skills/4-implementation/bmad-quick-dev/render.py index 4853b5852..58993b916 100644 --- a/src/bmm-skills/4-implementation/bmad-quick-dev/render.py +++ b/src/bmm-skills/4-implementation/bmad-quick-dev/render.py @@ -137,9 +137,9 @@ def main(): continue src = posixpath.join(script_dir, fname) dst = posixpath.join(out_dir, fname) - with open(src, "r", encoding="utf-8") as fh: + with open(src, "r", encoding="utf-8", newline="") as fh: content = fh.read() - with open(dst, "w", encoding="utf-8") as fh: + with open(dst, "w", encoding="utf-8", newline="") as fh: fh.write(render_template(content, vars_)) count += 1