diff options
author | 2021-03-30 14:52:09 +0000 | |
---|---|---|
committer | 2021-03-30 14:52:09 +0000 | |
commit | d267fa461b73586118437e190b92b9956f9add73 (patch) | |
tree | 50ea72167bb016146fc007abe99c4d72d7e1cd49 /src/frontend/h.ts | |
parent | 3b27eaac4384e82e7f08122f0797a9671470781a (diff) | |
download | astro-d267fa461b73586118437e190b92b9956f9add73.tar.gz astro-d267fa461b73586118437e190b92b9956f9add73.tar.zst astro-d267fa461b73586118437e190b92b9956f9add73.zip |
[ci] npm run format
Diffstat (limited to '')
-rw-r--r-- | src/frontend/h.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/h.ts b/src/frontend/h.ts index 70965e135..7d26d21d2 100644 --- a/src/frontend/h.ts +++ b/src/frontend/h.ts @@ -6,9 +6,9 @@ export type HTag = string | AstroComponent; const voidTags = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']); function* _h(tag: string, attrs: HProps, children: Array<HChild>) { - if(tag === '!doctype') { + if (tag === '!doctype') { yield '<!doctype '; - if(attrs) { + if (attrs) { yield Object.keys(attrs).join(' '); } yield '>'; |