1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: remove \r for consistency (#18962)

This commit is contained in:
phoebe 2023-07-25 01:26:09 +02:00 committed by GitHub
parent fab915782d
commit 3a91a5eceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ fn (mut g Gen) comptime_if(node ast.IfExpr) {
expr_str := g.out.last_n(g.out.len - start_pos).trim_space()
if expr_str != '' {
if g.defer_ifdef != '' {
g.defer_ifdef += '\r\n' + '\t'.repeat(g.indent + 1)
g.defer_ifdef += '\n' + '\t'.repeat(g.indent + 1)
}
g.defer_ifdef += expr_str
}