in19farkt / css-to-jss

VS Code extension for converting CSS rules to JSS format
https://marketplace.visualstudio.com/items?itemName=infarkt.css-to-jss
15 stars 3 forks source link

Trailing spaces break conversion #8

Closed nickakey closed 2 years ago

nickakey commented 2 years ago

Hello!

Sometimes when I copy classes from the Chrome inspector, the last class has 4 or 5 trailing spaces with it.

Running the extension on it does NOT convert the bottom value ( the one with trailing spaces )

Here's an example of an exact paste from chrome inspector.

        left: 120px;
    top: 350px;    

(I don't know of a way to encode spaces into MD - but to reproduce it, just add 4 - 5 spaces after the last semi-colon;

in19farkt commented 2 years ago

Fixed in 1.0.7

nickakey commented 2 years ago

Fantastic! Thank you :)