Skip to content

Pretty print variants starting with @ #17814

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

Merged
merged 2 commits into from
Apr 28, 2025
Merged

Conversation

RobinMalfait
Copy link
Member

While working on another PR I noticed that some variants were re-printed in an odd way.

Specifically, this PR fixes an issue where variants using the @-root were incorrectly printed.

  • @lg was printed as @-lg
  • @[400px] was printed as @-[400px]

This is now special cased where the - is not inserted for @-root variants.

Test plan

  1. Added a test to ensure the @-root variants are printed correctly.

Variants with the `@`-root were incorrectly printed.

- `@lg` was printed as `@-lg`
- `@[400px]` was printed as `@-[400px]`

This is now special cased where the `-` is not inserted for `@`-root
variants.
@RobinMalfait RobinMalfait requested a review from a team as a code owner April 28, 2025 17:12
@RobinMalfait RobinMalfait enabled auto-merge (squash) April 28, 2025 17:14
@RobinMalfait RobinMalfait merged commit 3a1b27e into main Apr 28, 2025
7 checks passed
@RobinMalfait RobinMalfait deleted the fix/pretty-print-at-variant branch April 28, 2025 17:25
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

Successfully merging this pull request may close these issues.

2 participants