Skip to content

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