Skip to content

Commit 0ba6bde

Browse files
committed
force to use LF as line endings
1 parent 8a31597 commit 0ba6bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_notebook_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def export_script(exporter, model, os_path, contents_manager, **kwargs):
3434
script_fullpath = os.path.join(dir_path, ".nbexports", script_repopath)
3535
os.makedirs(os.path.dirname(script_fullpath), exist_ok=True)
3636
log.info("Saving script /%s", script_fullpath)
37-
with io.open(script_fullpath, 'w', encoding='utf-8') as f:
37+
with io.open(script_fullpath, 'w', encoding='utf-8', newline='\n') as f:
3838
f.write(script)
3939

4040

0 commit comments

Comments
 (0)