Skip to content

beautify css adds bad space in less-css syntax: &:extend(.class) #31

Closed
@guymguym

Description

@guymguym

I saw it while using Atom with the Atom Beautify package, and then tested also in prettydiff.com.

Here is the input:

.animal {
    color: red;
}
.dog {
    &:extend(.animal);
    &:hover {
        color: green;
    }
}

And prettydiff generates a space in "&: extend(..." which makes the output an illegal less-css:

.animal {
    color: red;
}
.dog {
    &: extend(.animal);
    &:hover {
        color: green;
    }
}

Can I help to make a quick fix?
Thanks!

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions