| Summary: | .editorconfig with trim_trailing_whitespace = true should not apply globally for existing files | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Buovjaga <ilmari.lauhakangas> |
| Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | christoph, sam, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 22.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/commit/94b328fc64e543d91930845d2a96ce08d3043295 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Buovjaga
2023-04-04 12:17:18 UTC
IIUC, it should trim spaces only on lines that are changed and not all lines? (In reply to Waqar Ahmed from comment #1) > IIUC, > > it should trim spaces only on lines that are changed and not all lines? Examples of where I got bitten by this recently: https://gerrit.libreoffice.org/c/core/+/149627/1/oox/source/export/ooxml-export-notes.txt https://gerrit.libreoffice.org/c/dictionaries/+/150006/1/en/dialog/en_en_US.properties ok but you didnt answer my question (In reply to Waqar Ahmed from comment #3) > ok but you didnt answer my question If you meant to ask how the current behaviour should be changed in Kate, then the answer is yes, it should trim spaces only on lines that are changed. I have no strong opinion on that. If other editors do that, we could relax the interpretation of this option, too. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/538 Git commit 94b328fc64e543d91930845d2a96ce08d3043295 by Christoph Cullmann. Committed on 10/04/2023 at 18:36. Pushed by cullmann into branch 'master'. change interpretation of trim_trailing_whitespace remove trailing spaces of modified lines M +1 -1 src/document/editorconfig.cpp https://invent.kde.org/frameworks/ktexteditor/commit/94b328fc64e543d91930845d2a96ce08d3043295 |