From 5daea8434819b5bf013aad4f3cbcc28c270f80d7 Mon Sep 17 00:00:00 2001 From: Kamil Mielnik Date: Sun, 19 Aug 2018 19:11:12 +0200 Subject: [PATCH] Fix redundant extra line insertion --- lib/printer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/printer.js b/lib/printer.js index f9e2d47b..559542fa 100644 --- a/lib/printer.js +++ b/lib/printer.js @@ -691,9 +691,7 @@ function genericPrintNoParens(path, options, print) { parts.push(lines); if (i < len - 1) { - // Add an extra line break if the previous object property - // had a multi-line value. - parts.push(separator + (multiLine ? "\n\n" : "\n")); + parts.push(separator + "\n"); allowBreak = !multiLine; } else if (len !== 1 && isTypeAnnotation) { parts.push(separator);