Commit a70b521
Match source line-ending convention in 4002 code fix
The fix previously emitted '\n' line terminators unconditionally, which
matched local Mac checkouts (LF) but failed on Linux CI where the
checked-out source uses CRLF. Detect the existing line ending from the
target tree's trivia and reuse it so the fixed output stays consistent
with the surrounding file.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f92d020 commit a70b521
1 file changed
Lines changed: 15 additions & 2 deletions
File tree
- src/Lucene.Net.CodeAnalysis.Dev.CodeFixes/LuceneDev4xxx
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
189 | 202 | | |
190 | 203 | | |
191 | 204 | | |
| |||
0 commit comments