File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ object (self)
118118 end in
119119 if Char. code s.[offset + len] = 0 then
120120 let str = String. sub s offset len in
121- let new_s = string_replace '\ n' " \\ n" str in
121+ let new_s = string_replace '"' " \\\" " (string_replace '\r' " \\ r " (string_replace '\ n' " \\ n" str)) in
122122 begin
123123 string_table#add_string va new_s;
124124 Some new_s
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ object (self)
8686 end in
8787 if Char. code s.[offset+ len] = 0 then
8888 let str = String. sub s offset len in
89- let new_s = string_replace '\ n' " \\ n" str in
89+ let new_s = string_replace '"' " \\\" " (string_replace '\r' " \\ r " (string_replace '\ n' " \\ n" str)) in
9090 begin
9191 string_table#add_string va new_s ;
9292 Some new_s
You can’t perform that action at this time.
0 commit comments