From 706cb7f05d580615692030f990febb9f2df43218 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 17 Sep 2024 10:21:50 -0400 Subject: [PATCH] fix(format/html): fix doctype formatting --- crates/biome_html_formatter/src/html/auxiliary/directive.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/biome_html_formatter/src/html/auxiliary/directive.rs b/crates/biome_html_formatter/src/html/auxiliary/directive.rs index fcb804f5c0e2..5eae763bcda1 100644 --- a/crates/biome_html_formatter/src/html/auxiliary/directive.rs +++ b/crates/biome_html_formatter/src/html/auxiliary/directive.rs @@ -29,12 +29,15 @@ impl FormatNodeRule for FormatHtmlDirective { html.format().fmt(f)?; } if let Some(quirk) = quirk_token { + write!(f, [space()])?; quirk.format().fmt(f)?; } if let Some(public_id) = public_id_token { + write!(f, [space()])?; public_id.format().fmt(f)?; } if let Some(system_id) = system_id_token { + write!(f, [space()])?; system_id.format().fmt(f)?; } write!(f, [r_angle_token.format(), hard_line_break()])?;