Bug 456303

Summary: Remove trailing spaces on save interferes with markdown's double space for new line syntax
Product: [Applications] kate Reporter: Niisse <nisselommerde>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: boba_fit, christoph, nate
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.