summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-11-19 12:43:14 -0500
committerGravatar GitHub <noreply@github.com> 2021-11-19 12:43:14 -0500
commitea2fc06ddf00bb6642c7ea15f91ca7e544581267 (patch)
tree366cb85d6b6c175574829017b4460057bc8995a4
parentbf1c1b72cf1fb0a36825e2fa550cc78cf2594021 (diff)
downloadastro-ea2fc06ddf00bb6642c7ea15f91ca7e544581267.tar.gz
astro-ea2fc06ddf00bb6642c7ea15f91ca7e544581267.tar.zst
astro-ea2fc06ddf00bb6642c7ea15f91ca7e544581267.zip
Remove additional newlines added to HTML (#1908)
* Remove additional newlines added to HTML * keep template newlines
-rw-r--r--packages/astro/src/runtime/server/index.ts2
1 files changed, 1 insertions, 1 deletions
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<any> {
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