fix(nuxt): add space before `<html>` and `<body>` attrs (#26027)

This commit is contained in:
i-udas 2024-03-06 23:20:17 +09:00 committed by GitHub
parent f844636e18
commit c6e1c9bb70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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) {