don't do pretty variable declaration formatting if retainLines is enabled

This commit is contained in:
Sebastian McKenzie 2015-05-05 14:04:51 +01:00
parent fc2be81c43
commit f441a7cae8

View File

@ -191,7 +191,7 @@ export function VariableDeclaration(node, print, parent) {
}
var sep = ",";
if (!this.format.compact && hasInits) {
if (!this.format.compact && hasInits && !this.format.retainLines) {
sep += `\n${repeating(" ", node.kind.length + 1)}`;
} else {
sep += " ";