Skip to content

Commit 5673ff4

Browse files
committed
Merge pull request sass#627 from xzyfer/fix/at-block-nested-output
Fix the hanging } in some at-rules nested output
2 parents 34aff58 + e5bef9f commit 5673ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

output_nested.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ namespace Sass {
190190
if (!stm->block()) indent();
191191
}
192192
stm->perform(this);
193-
append_to_buffer("\n");
193+
if (!stm->is_hoistable()) append_to_buffer("\n");
194194
}
195195
--indentation;
196196
}
@@ -266,7 +266,7 @@ namespace Sass {
266266
if (!stm->block()) indent();
267267
}
268268
stm->perform(this);
269-
append_to_buffer("\n");
269+
if (!stm->is_hoistable()) append_to_buffer("\n");
270270
}
271271
--indentation;
272272
}

0 commit comments

Comments
 (0)