You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated files get CRLF line endings when scripts run on Windows #127
The maintainer develops on Windows. Several scripts write files using Python's default newline translation, and .gitattributes doesn't cover Markdown, HTML or JSON. A sync run on Windows can therefore produce whole-file CRLF diffs or sync-check drift that does not reproduce on Linux CI.
Evidence
write_text without newline="" in:
scripts/sync_from_registry.py:~467
scripts/add_frontmatter.py:59
scripts/add_comment_marker.py:110
scripts/release_doc_sync/sync.py:157,240,304
.gitattributes only pins *.py, *.sh, *.yml and VERSION.
Suggested approach
Add * text=auto eol=lf (with binary overrides for fonts and images) to .gitattributes, and pass newline="\n" in every write_text call.
Done when
Running the sync and fix scripts on Windows produces byte-identical output to Linux.
Activity