From 21b64292058c0dd17e0708aea0a6112260560ab0 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 20 Nov 2018 19:41:31 -0600 Subject: [PATCH] Beautify: stop new line injection before comment. Fixes #564 --- vendor-overwrites/beautify/beautify-css-mod.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vendor-overwrites/beautify/beautify-css-mod.js b/vendor-overwrites/beautify/beautify-css-mod.js index 85c16422..1c39ea84 100644 --- a/vendor-overwrites/beautify/beautify-css-mod.js +++ b/vendor-overwrites/beautify/beautify-css-mod.js @@ -402,10 +402,6 @@ if (!ch) { break; } else if (ch === '/' && peek() === '*') { /* css comment */ - if (isAfterNewline) { - print.newLine(); - } - print.text(eatComment()); if (peek() !== ';') print.newLine(); } else if (ch === '/' && peek() === '/') { // single line comment