Bug 453319

Summary: When saving a Markdown file, all double spaces are removed which is problematic because it is needed to format the layout of the document.
Product: [Applications] kate Reporter: Pierre Fernagu--Berthier <pierrefb>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: minor CC: eric1
Priority: NOR    
Version First Reported In: 21.12.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Pierre Fernagu--Berthier 2022-05-02 19:35:51 UTC
SUMMARY
***
When saving a Markdown file, all double spaces are removed which is problematic because it is needed to format the layout of the document.
***


STEPS TO REPRODUCE
1. Create or open a Mardown file
2. Add a double scace at the end of a line
3.  Save the file

OBSERVED RESULT

The double space is removed.

EXPECTED RESULT

Living the double space as it was written.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 35
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Eric Armbruster 2022-05-03 11:06:38 UTC
As a workaround go to Settings->Open/Save->General->Remove trailing spaces and set it to Never

I think this has been fixed in 22.04. At least, I cannot reproduce it if the file has a .md file ending.
Comment 2 Eric Armbruster 2022-05-03 11:07:31 UTC

*** This bug has been marked as a duplicate of bug 451648 ***