Skip extra `;` (#1773)
parent
bb0c184855
commit
54497a0865
|
@ -2522,7 +2522,7 @@ function genericPrintNoParens(path, options, print, args) {
|
|||
}
|
||||
case "css-decl": {
|
||||
return concat([
|
||||
n.raws.before.trimLeft(),
|
||||
n.raws.before.replace(/[\s;]/g, ''),
|
||||
n.prop,
|
||||
": ",
|
||||
path.call(print, "value"),
|
||||
|
|
|
@ -5,10 +5,20 @@ exports[`empty.css 1`] = `
|
|||
|
||||
details[open] {
|
||||
}
|
||||
|
||||
div {
|
||||
box-sizing: border-box;;
|
||||
color: red;
|
||||
}
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
.ui-syntax-color();
|
||||
|
||||
details[open] {
|
||||
}
|
||||
|
||||
div {
|
||||
box-sizing: border-box;
|
||||
color: red;
|
||||
}
|
||||
|
||||
`;
|
||||
|
|
|
@ -2,3 +2,8 @@
|
|||
|
||||
details[open] {
|
||||
}
|
||||
|
||||
div {
|
||||
box-sizing: border-box;;
|
||||
color: red;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue