We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0488cee commit 9932747Copy full SHA for 9932747
src/inspect.cpp
@@ -1054,14 +1054,21 @@ namespace Sass {
1054
}
1055
void Inspect::operator()(ComplexSelector* sel)
1056
{
1057
- bool many = false;
1058
if (sel->hasPreLineFeed()) {
1059
append_optional_linefeed();
1060
+ const SelectorComponent* prev = nullptr;
1061
for (auto& item : sel->elements()) {
1062
- if (many) append_optional_space();
+ if (prev != nullptr) {
1063
+ if (typeid(*item) == typeid(SelectorCombinator) ||
1064
+ typeid(*prev) == typeid(SelectorCombinator)) {
1065
+ append_optional_space();
1066
+ } else {
1067
+ append_mandatory_space();
1068
+ }
1069
1070
item->perform(this);
- many = true;
1071
+ prev = item.ptr();
1072
1073
1074
0 commit comments