Skip to content

Commit 8adaff5

Browse files
committed
Forced generated markdown file to be platform independent
1 parent d8d3094 commit 8adaff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lazydocs/generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def to_md_file(
259259
)
260260

261261
print("Writing {}.".format(md_file))
262-
with open(os.path.join(out_path, md_file), "w", encoding="utf-8") as f:
262+
with open(os.path.join(out_path, md_file), "w", encoding="utf-8", newline="\n") as f:
263263
f.write(markdown_str)
264264

265265

@@ -1348,5 +1348,5 @@ def generate_docs(
13481348
# Write mkdocs pages file
13491349
print("Writing mkdocs .pages file.")
13501350
# TODO: generate navigation items to fix problem with naming
1351-
with open(os.path.join(output_path, ".pages"), "w") as f:
1351+
with open(os.path.join(output_path, ".pages"), "w", encoding="utf-8", newline="\n") as f:
13521352
f.write(_MKDOCS_PAGES_TEMPLATE.format(overview_file=overview_file))

0 commit comments

Comments
 (0)