File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -995,7 +995,9 @@ impl<'a> Pretty<'a, Allocator> for &Node<'_> {
995
995
allocator,
996
996
"import" ,
997
997
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( ) ,
999
1001
if Some ( * format) != InputFormat :: from_path( path) {
1000
1002
docs![
1001
1003
allocator,
Original file line number Diff line number Diff line change @@ -1157,7 +1157,9 @@ impl<'a> Pretty<'a, Allocator> for &Term {
1157
1157
allocator,
1158
1158
"import" ,
1159
1159
allocator. space( ) ,
1160
- allocator. as_string( path. to_string_lossy( ) ) . double_quotes( ) ,
1160
+ allocator
1161
+ . escaped_string( path. to_string_lossy( ) . as_ref( ) )
1162
+ . double_quotes( ) ,
1161
1163
if Some ( * format) != InputFormat :: from_path( path) {
1162
1164
docs![
1163
1165
allocator,
You can’t perform that action at this time.
0 commit comments