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

YAML frontmatter duplicates a new line on each opening of the file #494

Closed
Ciantic opened this issue Sep 15, 2018 · 0 comments
Closed

YAML frontmatter duplicates a new line on each opening of the file #494

Ciantic opened this issue Sep 15, 2018 · 0 comments
Assignees
Labels
🐛 bug Something isn't working 🐝 resolved/fixed but not released The bug has been fixed and the new version is not released, So it still opened

Comments

@Ciantic
Copy link

Ciantic commented Sep 15, 2018

Description

Creates unwanted newlines on the end of the YAML frontmatter.

Steps to reproduce

  1. Open the file , see Example file below
  2. On opening the file, Marktext adds an unwanted new line below created: 2018-09-15 line.
  3. Save, and close the file
  4. Re-open the file, notice it added a second new line after the created.

Expected behavior: [What you expected to happen]

No newlines after the created line.

Actual behavior: [What actually happened]

It adds a newline on each re-open.

Example file:

---
title: Some title
category: test
created: 2018-09-15
---

Testing this markdown editor...

Try editing this, save, then close the editor. Re-open this file. It adds a newline after the `created: 2018-09-15` line each time one re-opens the file.

Versions

  • Mark Text: v0.12.25
  • OS: Win 10 (64bit)
@fxha fxha added the 🐛 bug Something isn't working label Sep 15, 2018
@Jocs Jocs self-assigned this Sep 20, 2018
@Jocs Jocs added the 🐝 resolved/fixed but not released The bug has been fixed and the new version is not released, So it still opened label Sep 20, 2018
@Jocs Jocs closed this as completed Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🐝 resolved/fixed but not released The bug has been fixed and the new version is not released, So it still opened
Projects
None yet
Development

No branches or pull requests

3 participants