Open yuri-g-taboola opened 2 months ago
This is quite a dilemma. return trimEnd(markdown);
appears to be there with a reason (introduced in #653), so we should be careful how we approach this.
Possibly related to #7142?
@martinjagodic I think the by the book solution will be to add the new line in #7093 only for json files.
Describe the bug The Unsaved changes message appears when you edit and revert the changes.
To Reproduce
Expected behavior The Unsaved Changes should be replaced with Changes Saved
Screenshots
Applicable Versions:
CMS configuration https://github.com/decaporg/decap-cms/blob/main/dev-test/config.yml with gitthub backend
Additional context
It seems like the issue has been introduced by adding a new line in
packages/decap-cms-core/src/backend.ts#entryToRaw
methodin #7039 while solving #1382 The addition of the newline is conflicting with the trimming the end of content in markdown widget at https://github.com/decaporg/decap-cms/blob/main/packages/decap-cms-widget-markdown/src/serializers/index.js#L151