Bug 500561

Summary: Automatic Cleanups on save is doesn't work on markdown.
Product: [Applications] kate Reporter: SkyWalteron <regionstellarship_fouroner>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: markdown documents with include white space

Description SkyWalteron 2025-02-22 04:38:31 UTC
Created attachment 178719 [details]
markdown documents with include white space

SUMMARY
This option doesn't work on entry document and modified line on markdown documents.

STEPS TO REPRODUCE
1. Configure/OpenSave/Automatic Cleanups on Save
2. Remove trailing spaces:In Entire Document or On modified Lines
3. New document→Save/Test.md→Input same space→Save

OBSERVED RESULT
New document is work, space is cleanups.
But no cleanup on markdown file. why?

EXPECTED RESULT
Automatic cleanups work on markdown documents.

Operating System: openSUSE Tumbleweed 20250217
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I add test document is Test.md
Please try. Whitespace is no cleanups.
Comment 1 Waqar Ahmed 2025-02-25 08:10:19 UTC
Its intentional. Trailing spaces are meaningful in markdown. If you want cleanups, change the settings in "open/save" -> Modes & Filetypes tab.
Comment 2 SkyWalteron 2025-02-26 05:14:49 UTC
(In reply to Waqar Ahmed from comment #1)

Thanks. I found that option. I changed that.
Settings/Open Save/Modes&File types/markup|markdown/Variables/
remove-trailing-spaces none→all;
Variables have many option. That interesting. But not easy find and understand. 
I think many easy understand is add info in General tab.
example:variables is have different settings on file types.