Commit bf20cf5
committed
fix(formatter):
* Fixes: #15559
Use `SourceText::lines_before` to check the line break, which has already handled `CRLF` and is well-tested.
Thought:
Whether we can remove all `\r` checks to avoid this problem, only counting `\n` as a line break. `CR` is very rare now, and we have a few places where we are just checking `\n`.CRLF issue in the member chain (#15764)1 parent 5d688a0 commit bf20cf5
1 file changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
232 | 225 | | |
233 | 226 | | |
234 | 227 | | |
| |||
0 commit comments