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

Unexpectedly removed parenthesis of string interpolations #16

Closed Rud156 closed 6 years ago

Rud156 commented 6 years ago

Input: height: 'calc(%s - %s)' % (default-width-height default-textarea-height);

Formatted Output: height: 'calc(%s - %s)' % default-width-height default-textarea-height;

Expected Output: height: 'calc(%s - %s)' % (default-width-height default-textarea-height);

This is incorrect as stylus converts it into: height: calc((default-width-height - default-textarea-height)) instead of: height: calc(default-width-height - default-textarea-height)

PS: This was when using the vscode extension

ThisIsManta commented 6 years ago

Thank you for reporting the bug. I'll take a look tomorrow.

ThisIsManta commented 6 years ago

This is fixed in version 2.7.0.

Rud156 commented 6 years ago

@ThisIsManta Thanks. BTW the extension is pretty great