Skip to content

Commit

Permalink
fix(nuxt): add space before <html> and <body> attrs (#26027)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-udas committed Mar 6, 2024
1 parent f844636 commit c6e1c9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nuxt/src/core/runtime/nitro/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ function joinTags (tags: string[]) {
}

function joinAttrs (chunks: string[]) {
return chunks.join(' ')
if (chunks.length === 0) return ''
return ' ' + chunks.join(' ')
}

function renderHTMLDocument (html: NuxtRenderHTMLContext) {
Expand Down

0 comments on commit c6e1c9b

Please sign in to comment.