Skip to content

Commit

Permalink
fix: closing tag with generics (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabify authored Dec 16, 2024
1 parent dd2d8e3 commit 0f3444c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formatter/src/formatter/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl Formatter<'_> {
fn closing_tag(&mut self, element: &NodeElement) {
self.printer.word("</");
self.node_name(element.name());
self.format_syn_generics(&element.open_tag.generics);
self.printer.word(">");
}

Expand Down Expand Up @@ -170,8 +171,7 @@ mod tests {
use indoc::indoc;

use crate::{
formatter::ClosingTagStyle,
formatter::FormatterSettings,
formatter::{ClosingTagStyle, FormatterSettings},
test_helpers::{element, format_element_from_string, format_with},
};

Expand Down

0 comments on commit 0f3444c

Please sign in to comment.