Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading zero #110

Open
Ulrikop opened this issue Mar 2, 2016 · 1 comment
Open

Leading zero #110

Ulrikop opened this issue Mar 2, 2016 · 1 comment

Comments

@Ulrikop
Copy link

Ulrikop commented Mar 2, 2016

Hi,
I use the rule Leading Zero with "exclude_zero". So I want to write .5 for 0.5.

But the beautifier breaks that rule, because it adds the 0. Can I configure that behavior? It would be nice, if it removes an zero if one is there.

If the beautifier doesn't support it yet, could you add it?

Thank you.

@owenleonard
Copy link

I've been looking into this because I ran into the same issue. I'm not seeing it happen in every case, though. For example, with this snippet

h1 {
    margin: .4em;
    -webkit-transform: scale(.9);
    transition: -webkit-transform .1s;
}

It gets transformed to

h1 {
    margin: .4em;
    -webkit-transform: scale(0.9);
    transition: -webkit-transform .1s;
}

Notice that the middle line -webkit-transform is the only one that gets the 0 added on. Not sure why that is...

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

No branches or pull requests

2 participants