Zig Version
0.16.0-dev.1484+d0ba6642b
Steps to Reproduce and Observed Behavior
zig fmt inserts an extra space if you combine an inline if statement with a multiline string, like this:
constinput=if(real_input)@embedFile("../inputs/1.txt")else\\L68\\L30\\R48\\L5\\R60\\L55\\L1\\L99\\R14\\L82;Running zig fmt will add an extra space after the else if it is not there.
I hit this trying to do advent of code day 1 this year.
Expected Behavior
I expect zig fmt to never insert unnecessary white space at the end of a line.
constinput=if(real_input)@embedFile("../inputs/1.txt")else\\L68\\L30\\R48\\L5\\R60\\L55\\L1\\L99\\R14\\L82;I'm happy to attempt a PR to fix this if it's indeed considered a bug.
### Zig Version
0.16.0-dev.1484+d0ba6642b
### Steps to Reproduce and Observed Behavior
zig fmt inserts an extra space if you combine an inline if statement with a multiline string, like this:
```zig
const input = if (real_input) @embedFile("../inputs/1.txt") else
\\L68
\\L30
\\R48
\\L5
\\R60
\\L55
\\L1
\\L99
\\R14
\\L82
;
```
Running `zig fmt` will add an extra space after the `else` if it is not there.
I hit this trying to do advent of code day 1 this year.
### Expected Behavior
I expect zig fmt to never insert unnecessary white space at the end of a line.
```zig
const input = if (real_input) @embedFile("../inputs/1.txt") else
\\L68
\\L30
\\R48
\\L5
\\R60
\\L55
\\L1
\\L99
\\R14
\\L82
;
```
I'm happy to attempt a PR to fix this if it's indeed considered a bug.