Skip to content

Commit

Permalink
Forced generated markdown file to be platform independent
Browse files Browse the repository at this point in the history
  • Loading branch information
ltan10 committed Feb 26, 2025
1 parent d8d3094 commit 8adaff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lazydocs/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def to_md_file(
)

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


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

0 comments on commit 8adaff5

Please sign in to comment.