From 8abc60ef268f55e8399e06b19506d1c985baae8d Mon Sep 17 00:00:00 2001 From: Simone Deponti Date: Fri, 21 Sep 2012 08:26:48 +0200 Subject: [PATCH] Minor fixes. Fixed a bug that could appear with compression enabled, and minor tabbing issues in tests. --- lib/less/tree/ruleset.js | 2 +- test/less/debug/import/test.less | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/less/tree/ruleset.js b/lib/less/tree/ruleset.js index d8066fef..822f331e 100644 --- a/lib/less/tree/ruleset.js +++ b/lib/less/tree/ruleset.js @@ -198,7 +198,7 @@ tree.Ruleset.prototype = { } css.push(rulesets); - return css.join(''); + return css.join('') + (env.compress ? '\n' : ''); }, joinSelectors: function (paths, context, selectors) { diff --git a/test/less/debug/import/test.less b/test/less/debug/import/test.less index 83e60636..fe4f4f2a 100644 --- a/test/less/debug/import/test.less +++ b/test/less/debug/import/test.less @@ -1,21 +1,21 @@ .mixin_import1() { - @media all { - .tst { - color: black; - @media screen { - color: red; - .tst3 { - color: white; - } - } - } - } + @media all { + .tst { + color: black; + @media screen { + color: red; + .tst3 { + color: white; + } + } + } + } } .mixin_import2() { .tst2 { - color: white; - } + color: white; + } } .tst3 {