mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Windows: another \r\n fix
This commit is contained in:
parent
18525922fd
commit
1bcf94f7f4
@ -2075,7 +2075,12 @@ fn (p mut Parser) char_expr() {
|
||||
|
||||
fn format_str(str string) string {
|
||||
str = str.replace('"', '\\"')
|
||||
$if windows {
|
||||
str = str.replace('\r\n', '\\n')
|
||||
}
|
||||
$else {
|
||||
str = str.replace('\n', '\\n')
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user