Skip to content

Commit 4c0ae78

Browse files
committed
Fix code block rendering
1 parent c699d00 commit 4c0ae78

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/formatting/formatter.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,7 @@ impl<'i> Formatter<'i> {
342342
sub.add_fragment_reference(Syntax::Neutral, " ");
343343
sub.add_fragment_reference(Syntax::Structure, "}");
344344
sub.flush_current();
345-
346-
let mut combined = String::new();
347-
for (_syntax, content) in &sub.fragments {
348-
combined.push_str(&content);
349-
}
350-
351-
vec![(Syntax::Structure, Cow::Owned(combined))]
345+
sub.fragments
352346
}
353347
}
354348
}

0 commit comments

Comments
 (0)