From 5cd401807b520ffbb74cc78997528ad2ccf32cf4 Mon Sep 17 00:00:00 2001 From: Nikolay Gromov Date: Wed, 4 Jan 2017 19:53:28 +0300 Subject: [PATCH 1/2] Update formatter.js --- lib/formatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/formatter.js b/lib/formatter.js index 65c06bc..d5b8a37 100644 --- a/lib/formatter.js +++ b/lib/formatter.js @@ -17,7 +17,7 @@ function saveElement(css, el) { }); } css = css + RULELIST_CLOSE; - return css; + return css.replace(/\t/g, atom.config.get('html-to-css.indent-characters')); } exports.format = function(json) { From 7586a5683206a4b2d5154e53cb77f8b143841c47 Mon Sep 17 00:00:00 2001 From: Nikolay Gromov Date: Wed, 4 Jan 2017 19:54:23 +0300 Subject: [PATCH 2/2] Update html-to-css.js --- lib/html-to-css.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/html-to-css.js b/lib/html-to-css.js index 7a18c9a..cd53a7f 100644 --- a/lib/html-to-css.js +++ b/lib/html-to-css.js @@ -39,6 +39,12 @@ export default { "default": "&", "description": "Character(s) to output when grouping nested definitions" }, + "indent-characters": { + "title": "Indent characters", + "type": "string", + "default": "\t", + "description": "Characters to indent nested code" + }, },