File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ module.exports = postcss.plugin('postcss-sorting', function (opts) {
316
316
countEmptyLines ( applicableNode . raws . before ) < linesBetweenChildrenRules
317
317
)
318
318
) {
319
- applicableNode . raws . before = createLineBreaks ( linesBetweenChildrenRules ) + applicableNode . raws . before ;
319
+ applicableNode . raws . before = createLineBreaks ( linesBetweenChildrenRules - countEmptyLines ( applicableNode . raws . before ) ) + applicableNode . raws . before ;
320
320
}
321
321
}
322
322
}
@@ -327,7 +327,7 @@ module.exports = postcss.plugin('postcss-sorting', function (opts) {
327
327
applicableNode = getApplicableNode ( 'atrule' , node ) ;
328
328
329
329
if ( applicableNode ) {
330
- applicableNode . raws . before = createLineBreaks ( linesBetweenMediaRules ) + applicableNode . raws . before ;
330
+ applicableNode . raws . before = createLineBreaks ( linesBetweenMediaRules - countEmptyLines ( applicableNode . raws . before ) ) + applicableNode . raws . before ;
331
331
}
332
332
}
333
333
}
You can’t perform that action at this time.
0 commit comments