Commit 98f68969 by Aaron Leung

Getting the newlines right, and adding a new spec test.

parent f3e0a52a
...@@ -107,6 +107,7 @@ namespace Sass { ...@@ -107,6 +107,7 @@ namespace Sass {
} }
} }
} }
if (block.has_rules_or_comments) --depth;
if (depth == 0 && prefixes.empty()) buf << endl; if (depth == 0 && prefixes.empty()) buf << endl;
} break; } break;
default: default:
......
...@@ -16,6 +16,10 @@ c, d { ...@@ -16,6 +16,10 @@ c, d {
i, j { i, j {
foo: goo; foo: goo;
k, l { k, l {
m, n, o {
wow: we are far inside;
but: it still works;
}
hoo: boo; hoo: boo;
} }
} }
......
a, b {
color: red;
background: blue;
}
c, d {
color: gray;
e, f {
background: blue;
padding: 10px 5px;
}
g, h {
blah: blah;
bloo: bloo;
}
i, j {
foo: goo;
k, l {
m, n, o {
wow: we are far inside;
but: it still works;
}
hoo: boo;
}
}
}
\ No newline at end of file
a, b {
color: red;
background: blue; }
c, d {
color: gray; }
c e, c f, d e, d f {
background: blue;
padding: 10px 5px; }
c g, c h, d g, d h {
blah: blah;
bloo: bloo; }
c i, c j, d i, d j {
foo: goo; }
c i k, c i l, c j k, c j l, d i k, d i l, d j k, d j l {
hoo: boo; }
c i k m, c i k n, c i k o, c i l m, c i l n, c i l o, c j k m, c j k n, c j k o, c j l m, c j l n, c j l o, d i k m, d i k n, d i k o, d i l m, d i l n, d i l o, d j k m, d j k n, d j k o, d j l m, d j l n, d j l o {
wow: we are far inside;
but: it still works; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment