From 0790fc84245b7242a4ee03b045961ad01319cae4 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Tue, 29 Oct 2019 13:49:53 +0100 Subject: [PATCH] Fix indentation for parents with newlines in nested mode Fixes https://github.com/sass/libsass/issues/3018 --- src/inspect.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/inspect.cpp b/src/inspect.cpp index d2c7e1b75..6dd7f6a92 100644 --- a/src/inspect.cpp +++ b/src/inspect.cpp @@ -1056,6 +1056,9 @@ namespace Sass { { if (sel->hasPreLineFeed()) { append_optional_linefeed(); + if (output_style() == NESTED) { + append_indentation(); + } } const SelectorComponent* prev = nullptr; for (auto& item : sel->elements()) {