Skip to content

Commit

Permalink
cgen: remove \r for consistency (#18962)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoreverpheebs committed Jul 24, 2023
1 parent fab9157 commit 3a91a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/comptime.v
Expand Up @@ -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
}
Expand Down

0 comments on commit 3a91a5e

Please sign in to comment.