mirror of https://github.com/nuxt/nuxt.git
fix(nuxt): add space before `<html>` and `<body>` attrs (#26027)
This commit is contained in:
parent
f844636e18
commit
c6e1c9bb70
|
@ -535,7 +535,8 @@ function joinTags (tags: string[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function joinAttrs (chunks: string[]) {
|
function joinAttrs (chunks: string[]) {
|
||||||
return chunks.join(' ')
|
if (chunks.length === 0) return ''
|
||||||
|
return ' ' + chunks.join(' ')
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderHTMLDocument (html: NuxtRenderHTMLContext) {
|
function renderHTMLDocument (html: NuxtRenderHTMLContext) {
|
||||||
|
|
Loading…
Reference in New Issue