Skip to content

Write generated files with LF line endings - #91

Merged
magahl merged 1 commit into
mainfrom
fix-generated-line-endings
Sep 3, 2026
Merged

magahl merged 1 commit into
mainfrom
fix-generated-line-endings

Conversation

@magahl

@magahl magahl commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The T4 templates emit CRLF in their literal text while SummarySafe uses Environment.NewLine for doc comments, so on Linux and macOS generated files came out with mixed line endings.

Normalizing on write also makes output identical across platforms, so teams with both Windows and Linux developers no longer see the whole generated client reported as modified after each run.

The T4 templates emit CRLF in their literal text while SummarySafe uses
Environment.NewLine for doc comments, so on Linux and macOS generated
files came out with mixed line endings. Normalizing on write also keeps
output identical across platforms, so teams with both Windows and Linux
developers no longer see the whole client as modified after each run.
@magahl
magahl merged commit b797a89 into main Sep 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants