Skip to content

Commit

Permalink
fix(format/html): fix doctype formatting (#3961)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored Sep 18, 2024
1 parent 806e2af commit 1599555
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/biome_html_formatter/src/html/auxiliary/directive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ impl FormatNodeRule<HtmlDirective> 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()])?;
Expand Down

0 comments on commit 1599555

Please sign in to comment.