Skip to content

Magic carriage returns or pastings #963

@postb99

Description

@postb99

Describe the bug
Sometimes a set of carriage returns, seems 3 at once, is added to my multiline "info" field, for every line, every 2 seconds.

To Reproduce
Steps to reproduce the behavior:

I have some files with following TOML metadata but have the issue with YAML metadata too.
The "info" field has multiline content with special characters.
I don't know exactly how this bug starts but it seems related to copy-paste and switching from FrontMatter view to File view, after performing file search.
I also notice excessive magic pastings of my info field frontmatter below to some other open files that don't have info field or have another simple info field, when I switch focus (FM view more often than File view).

I only have this bug with such complex multiline content.

The include syntax below is a way of including a markdown file into another for the Hugo theme I use, but I also keep this into info field for backup reason.

info = """
Some text.

View full list :

{{% include "../../includes/my_listing" hidefirstheading %}}"""

Expected behavior
No magic pasting or such reformatting.

Screenshots
Not recorded yet.

Device:

  • OS: Windows 11
  • Front Matter CMS Version 10.8.0
  • Browser: not applicable

Additional context
Restarting VS Code temporarily solves the magic behavior. Sometimes closing all files so that FM has no active file is enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions