Beautify: stop new line injection before comment. Fixes #564
This commit is contained in:
parent
81d27288f2
commit
21b6429205
|
@ -402,10 +402,6 @@
|
||||||
if (!ch) {
|
if (!ch) {
|
||||||
break;
|
break;
|
||||||
} else if (ch === '/' && peek() === '*') { /* css comment */
|
} else if (ch === '/' && peek() === '*') { /* css comment */
|
||||||
if (isAfterNewline) {
|
|
||||||
print.newLine();
|
|
||||||
}
|
|
||||||
|
|
||||||
print.text(eatComment());
|
print.text(eatComment());
|
||||||
if (peek() !== ';') print.newLine();
|
if (peek() !== ';') print.newLine();
|
||||||
} else if (ch === '/' && peek() === '/') { // single line comment
|
} else if (ch === '/' && peek() === '/') { // single line comment
|
||||||
|
|
Loading…
Reference in New Issue
Block a user