Skip to content

Commit b8b796c

Browse files
authored
fix: external formatter should be able to handle tab characters (#708)
1 parent 936cf94 commit b8b796c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generation/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3051,7 +3051,7 @@ fn maybe_gen_tagged_tpl_with_external_formatter<'a>(node: &TaggedTpl<'a>, contex
30513051
}
30523052
let text = &line[pos..end];
30533053
if !text.is_empty() {
3054-
items.push_string(text.to_string());
3054+
items.extend(gen_from_raw_string(text));
30553055
}
30563056
if parts.peek().is_some() {
30573057
items.push_sc(sc!("${"));

0 commit comments

Comments
 (0)