Skip to content

Error saving comments #162

Closed
Closed
@Ulyanov-programmer

Description

@Ulyanov-programmer

Hello!

While using your plugin, I noticed the following:

If attach a comment to a rule, regardless of whether it is embedded in another one or not, it will be displayed correctly.
(note that the preserveEmpty parameter is true)

Example
p {
  a {
    /* Text */
  }
}

/* to */

p {}

p a {
  /* Text */
}

However, if a comment is nested in a rule that has a different rule inside, it will not be nested:

Example
p {
  /* P Text */
  a {
    /* Text */
  }
}

/* to */

p {}

/* P Text */
p a {
  /* Text */
}

But it was expected:

p {
  /* P Text */
}

p a {
  /* Text */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions