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

keep multiline declaration format #35

Closed yukulele closed 6 years ago

yukulele commented 6 years ago

I'ts sometime better to keep multiline declaration:

input.shadowed
    color black
    background color green
    box-shadow:
        0px 0px 5px black,
        0px 5px 1px 1px blue,
        10px 10px 0px red,
        0px 0px 0px 1px yellow inset

stylus-supremacy is actually convert that to:

input.shadowed
    color black
    background color green
    box-shadow 0px 0px 5px black, 0px 5px 1px 1px blue, 10px 10px 0px red, 0px 0px 0px 1px yellow inset
ThisIsManta commented 6 years ago

Thanks for the feedback. I'll work on that soon.

ThisIsManta commented 6 years ago

Hello @yukulele,

Sorry to keep you waiting. The version 2.12.0 is out as NPM and VSCode extension. In order to allow such multi-line, you need to set preserveNewLinesBetweenPropertyValues formatting option to true manually.

Cheers!