Skip to content

toString() incorrectly converts comment to string #687

Description

@RedCMD

Describe the bug
similar to #686
toString() incorrectly converts comment to string when at the start of a block-scalar with a indent indicator
and multiple newline lines are added?

To Reproduce

|5
#comment

parsedDocumentYaml.toString()

Expected behaviour
comment to stay a comment

Versions:

  • Environment: VSCode 1.121.0 Windows
  • yaml: 2.7.1

Additional context

Image

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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