From ea2fc06ddf00bb6642c7ea15f91ca7e544581267 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 19 Nov 2021 12:43:14 -0500 Subject: [PATCH] Remove additional newlines added to HTML (#1908) * Remove additional newlines added to HTML * keep template newlines --- packages/astro/src/runtime/server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts index a60f0f446..0b7a68a50 100644 --- a/packages/astro/src/runtime/server/index.ts +++ b/packages/astro/src/runtime/server/index.ts @@ -17,7 +17,7 @@ export type { Metadata } from './metadata'; async function _render(child: any): Promise { child = await child; if (Array.isArray(child)) { - return (await Promise.all(child.map((value) => _render(value)))).join('\n'); + return (await Promise.all(child.map((value) => _render(value)))).join(''); } else if (typeof child === 'function') { // Special: If a child is a function, call it automatically. // This lets you do {() => ...} without the extra boilerplate