Bug 456303 - Remove trailing spaces on save interferes with markdown's double space for new line syntax
Summary: Remove trailing spaces on save interferes with markdown's double space for ne...
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 21.12.3
Platform: Other All
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-04 06:54 UTC by Niisse
Modified: 2023-01-19 19:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niisse 2022-07-04 06:54:53 UTC
SUMMARY
***
If you have the option 'remove trailing spaces' on saving enabled, it interferes with markdown's double space for newline syntax.
***


STEPS TO REPRODUCE
1. Have 'remove trailing spaces' in settings enabled
2. Edit a .md file, insert double space at end of line
3. Save

OBSERVED RESULT
The trailing spaces are removed, thus changing the document's formatting.

EXPECTED RESULT
It would be nice to have an exception for markdown files, as in any other situation I want this option enabled.

SOFTWARE/OS VERSIONS
(doubt this is related)
Windows:  10 21H2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2022-12-31 19:24:17 UTC
In open/save settings, modes&filetype you can set variables per file type.

Set there for markdown:

remove-trailing-spaces: none;
Comment 2 Boba Fit 2023-01-19 19:43:11 UTC
One should set this to default.