-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for MAC_CLASSIC (\r only) #1196
Comments
There are two standard line endings in use today:
On Mac OS Classic (last actively developed 20 years ago around Y2K) there was a If you want to add a The tricky part is that this method currently assumes it is getting spotless/lib/src/main/java/com/diffplug/spotless/LineEnding.java Lines 138 to 147 in 4230476
Then these methods would need to get updated too (perhaps other places too, but I think this is most of it). spotless/lib/src/main/java/com/diffplug/spotless/LineEnding.java Lines 40 to 45 in 4230476
spotless/lib/src/main/java/com/diffplug/spotless/LineEnding.java Lines 72 to 77 in 4230476
spotless/lib/src/main/java/com/diffplug/spotless/LineEnding.java Lines 97 to 98 in 4230476
spotless/lib/src/main/java/com/diffplug/spotless/LineEnding.java Lines 114 to 120 in 4230476
|
Here I don't understand, if input is endWith '\n', it must go to the else block? Is this necessary? |
After adding the MAC_CLASSIC conversion, I think it should look like this. |
Released in |
If you are submitting a bug, please include the following:
The text was updated successfully, but these errors were encountered: