Bug 500561 - Automatic Cleanups on save is doesn't work on markdown.
Summary: Automatic Cleanups on save is doesn't work on markdown.
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-22 04:38 UTC by SkyWalteron
Modified: 2025-02-26 05:14 UTC (History)
1 user (show)

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


Attachments
markdown documents with include white space (185 bytes, text/markdown)
2025-02-22 04:38 UTC, SkyWalteron
Details

Note You need to log in before you can comment on or make changes to this bug.
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.