From 1c380b3715c037e72ce9fe92b63b2ac38fb4801f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqui=CC=81n=20Lo=CC=81pez?= Date: Wed, 4 Sep 2019 20:08:16 -0500 Subject: [PATCH 1/2] fix(format): minor css format output fix see the issue for details fix issue #322 --- lib/common/formats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/formats.js b/lib/common/formats.js index 0254b9d2b..ce56f9890 100644 --- a/lib/common/formats.js +++ b/lib/common/formats.js @@ -104,7 +104,7 @@ module.exports = { 'css/variables': function(dictionary) { return fileHeader(this.options) + ':root {\n' + - variablesWithPrefix(' --', dictionary.allProperties) + + variablesWithPrefix(' --', dictionary.allProperties) + '\n}\n'; }, From 8d31ed3d10461fa40aef6b504ae102d70b6740fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqui=CC=81n=20Lo=CC=81pez?= Date: Wed, 4 Sep 2019 20:25:43 -0500 Subject: [PATCH 2/2] fix(format): updating test snapshot --- __tests__/formats/__snapshots__/all.test.js.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/formats/__snapshots__/all.test.js.snap b/__tests__/formats/__snapshots__/all.test.js.snap index 540955618..c88205ef5 100644 --- a/__tests__/formats/__snapshots__/all.test.js.snap +++ b/__tests__/formats/__snapshots__/all.test.js.snap @@ -78,7 +78,7 @@ exports[`formats all should match css/variables snapshot 1`] = ` */ :root { - --color_red: #FF0000; /* comment */ + --color_red: #FF0000; /* comment */ } " `;