ThisIsManta / stylus-supremacy

A Node.js script that helps formatting Stylus files.
https://thisismanta.github.io/stylus-supremacy
MIT License
88 stars 9 forks source link

Not preserving lines around custom @-rules #60

Closed lynzrand closed 4 years ago

lynzrand commented 4 years ago

Plugin version: 2.14.0 (tested in browser and VSCode plugin)

When formatting the following code in Stylus Supremacy:

@lost gutter 24px
@lost flexbox flex
default-font = 'Sarasa UI SC'

We get the following result (with default settings):

@lost gutter 24px;@lost flexbox flex;default-font = 'Sarasa UI SC';

图片

Formatting without semicolons makes things worse:

@lost gutter 24px@lost flexbox flexdefault-font = 'Sarasa UI SC'

Expected output is the same with input (with semicolons).

ThisIsManta commented 4 years ago

This will be fixed in v2.14.2 or newer.