# zig fmt: fix extra whitespace in StructInit with multiline strings · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/26db54d69b9a7f58a45897bb9523f95e3b8dd054)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 26db54d69b9a7f58a45897bb9523f95e3b8dd054

Requested commit: 26db54d69b9a7f58a45897bb9523f95e3b8dd054

Commit: 26db54d69b9a7f58a45897bb9523f95e3b8dd054

Tree: 259fa6ddcdb874d3054ad76c3715361037b8109e

Author: skewb1k

Committer: Veikka Tuominen

## Message

```
zig fmt: fix extra whitespace in StructInit with multiline strings

68d2f68ed introduced special handling for StructInit fields
containing multiline strings to prevent inserting whitespace after =.
However, this logic didn't handle cases without a trailing comma,
which resulted in unwanted trailing whitespace.

```

## Parents

- [a6d444c2714f24b7232895cf15282e2287fe445e](https://git.cafe/gitcafe/zig/commit/a6d444c2714f24b7232895cf15282e2287fe445e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/26db54d69b9a7f58a45897bb9523f95e3b8dd054?format=markdown)
