Skip to content

Commit 0095d96

Browse files
committed
Fix pretty-printing of imports
1 parent 555a32c commit 0095d96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/bytecode/pretty.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,9 @@ impl<'a> Pretty<'a, Allocator> for &Node<'_> {
995995
allocator,
996996
"import",
997997
allocator.space(),
998-
allocator.as_string(path.to_string_lossy()).double_quotes(),
998+
allocator
999+
.escaped_string(path.to_string_lossy().as_ref())
1000+
.double_quotes(),
9991001
if Some(*format) != InputFormat::from_path(path) {
10001002
docs![
10011003
allocator,

0 commit comments

Comments
 (0)