[Pkg-javascript-commits] [less.js] 41/50: If the end line is comments, the modify-var option will have no effect.

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:22:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v1.7.1
in repository less.js.

commit 56d062bba1ccf7ab5c7a91639cc8f8c072baf9c4
Author: boxiang chen <gozap.chenboxiang at gmail.com>
Date:   Mon May 26 09:26:07 2014 +0800

    If the end line is comments, the modify-var option will have no effect.
---
 bin/lessc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/lessc b/bin/lessc
index 1eb3c95..809741d 100755
--- a/bin/lessc
+++ b/bin/lessc
@@ -336,7 +336,7 @@ var parseLessFile = function (e, data) {
         return;
     }
 
-    data = options.globalVariables + data + options.modifyVariables;
+    data = options.globalVariables + data + '\n' + options.modifyVariables;
 
     options.paths = [path.dirname(input)].concat(options.paths);
     options.filename = input;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list