fix(fmt): don't use self-closing tags in HTML (#26754)

Closes https://github.com/denoland/deno/issues/26748
This commit is contained in:
Bartek Iwańczuk 2024-11-06 12:56:03 +00:00 committed by GitHub
parent 5088b25f23
commit 64e887083a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1032,7 +1032,7 @@ fn get_resolved_markup_fmt_config(
max_attrs_per_line: None,
prefer_attrs_single_line: false,
html_normal_self_closing: None,
html_void_self_closing: Some(true),
html_void_self_closing: None,
component_self_closing: None,
svg_self_closing: None,
mathml_self_closing: None,

View File

@ -1,4 +1,4 @@
<div class="container">content</div>
<div class="container">content<br></div>
<script>
let counter = 0;