Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header and Body should end with newline \n #2342

Open
1 task done
getreu opened this issue Sep 15, 2020 · 0 comments
Open
1 task done

Header and Body should end with newline \n #2342

getreu opened this issue Sep 15, 2020 · 0 comments

Comments

@getreu
Copy link

getreu commented Sep 15, 2020

Description

MarkText strips whitespaces at the end of an .md file. This is especially a problem when the file consists of a header only. In this case MarkText even strips the newline after the closing ----!

  • Can you reproduce the issue?

Steps to reproduce

$ cat Note.md 
---
title:      "getreu"
---


$
$ cp Note.md Note-old.md 
$
$ marktext Note.md
getreu@saar1:~$ cat Note.md 
---
title:      "getreu"
---$
$ diff Note-old.md Note.md
3,5c3
< ---
< 
< 
---
> ---
\ No newline at end of file
$

Expected behavior:

Note.md and Note-old.md are equal.

Actual behavior:

See diff output above.

Versions

  • Mark Text version: v0.16.2
  • Operating system: Debian 10.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant