Skip to content

Commit

Permalink
Workaround for prettier bug prettier/prettier#16184
Browse files Browse the repository at this point in the history
  • Loading branch information
dqh-au committed Mar 30, 2024
1 parent 010b422 commit ce3f1e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/page/document.mjs
Expand Up @@ -150,7 +150,11 @@ export class Element
if (this.tagName === 'raw-content')
return this.attributes.get('content');

html = '<' + this.tagName;
// Temporary workaround for https://github.com/prettier/prettier/issues/16184
if (this.tagName === 'pre')
html = '\n<' + this.tagName;
else
html = '<' + this.tagName;

// Attributes
for (const [key, value] of this.attributes.entries())
Expand Down

0 comments on commit ce3f1e6

Please sign in to comment.