Beautify: stop new line injection before comment. Fixes #564

This commit is contained in:
Rob Garrison 2018-11-20 19:41:31 -06:00
parent 81d27288f2
commit 21b6429205

View File

@ -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