-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Added deletion of an empty line at the end of the file (#4050) #4054
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
Conversation
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #4054 +/- ##
==========================================
- Coverage 19.96% 19.96% -0.01%
==========================================
Files 153 153
Lines 30478 30482 +4
==========================================
Hits 6086 6086
- Misses 23479 23483 +4
Partials 913 913
Continue to review full report at Codecov.
|
LGTM |
@lunny I think this issue is more an enhancement then a bug. |
@JonasFranzDEV I don't think so. see lines := strings.Split(fileContent, "\n") And assume we have a file a = b\n
c = d\n This will always output 3 lines, because we used |
@axifive please send a backport PR to relase/v1.4 |
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
fix #4050
Now the same viewing behavior as the GitHub.
While viewing:

While editing:
