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

Formatting bug remove interpolation braces when inside a function and selectorSeparator is new line #110

Open
fabien-michel opened this issue Jan 8, 2024 · 0 comments

Comments

@fabien-michel
Copy link

This very specific condition make formatting remove part of code.

Exemple:

Formatting option: selectorSeparator: "\n"

header-title(n) {
  h{n}
  .h{n} {
    font-family: var(--font-title);

    {block};
  }
}

Format to:

header-title(n) {
  h;

  .h{n} {
    font-family: var(--font-title);

    {block};
  }
}

Note that the braces on the first selector are removed

This does not occur when this code is outside a function:

h{n}
.h{n} {
  font-family: var(--font-title);

  {block};
}
@fabien-michel fabien-michel changed the title Formatting bug remove interpolation braces when iside a function and selectorSeparator is new line Formatting bug remove interpolation braces when inside a function and selectorSeparator is new line Jan 8, 2024
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