Bug 453319 - When saving a Markdown file, all double spaces are removed which is problematic because it is needed to format the layout of the document.
Summary: When saving a Markdown file, all double spaces are removed which is problemat...
Status: RESOLVED DUPLICATE of bug 451648
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 21.12.2
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-02 19:35 UTC by Pierre Fernagu--Berthier
Modified: 2022-05-03 11:07 UTC (History)
1 user (show)

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


Attachments

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