Skip to content

Commit fccb074

Browse files
authored
Merge pull request #692 from Cerdic/Issue/leafo/585
Fix #585 : the first level of …
2 parents 4c6f25e + 38f2641 commit fccb074

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/Compiler.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,13 +1423,16 @@ protected function collapseSelectors($selectors)
14231423

14241424
foreach ($selectors as $selector) {
14251425
$output = '';
1426+
foreach ($selector as $node) {
1427+
$output .= ($output ? ' ' : '');
14261428

1427-
array_walk_recursive(
1428-
$selector,
1429-
function ($value, $key) use (&$output) {
1430-
$output .= $value;
1431-
}
1432-
);
1429+
array_walk_recursive(
1430+
$node,
1431+
function ($value, $key) use (&$output) {
1432+
$output .= $value;
1433+
}
1434+
);
1435+
}
14331436

14341437
$parts[] = $output;
14351438
}

0 commit comments

Comments
 (0)