# Prevent JuliaFormatter from adding whitespaces to logging arguments

**URL:** <https://discourse.julialang.org/t/prevent-juliaformatter-from-adding-whitespaces-to-logging-arguments/92547>\
**Category:** General Usage\
**Tags:** formatting\
**Created:** [January 5, 2023, 8:59am UTC](https://discourse.julialang.org/t/prevent-juliaformatter-from-adding-whitespaces-to-logging-arguments/92547 "2023-01-05T08:59:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sstroemer](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Post date:** [January 5, 2023, 8:59am UTC](https://discourse.julialang.org/t/prevent-juliaformatter-from-adding-whitespaces-to-logging-arguments/92547/1 "2023-01-05T08:59:47Z")

</div>

Is there any setting that I can add to my `.JuliaFormatter.toml` that stops it from adding whitespaces to something like

```julia
@error "An error occured" code="XY on Z" foo=1 bar=2

```

because I find the resulting

```julia
@error "An error occured" code = "XY on Z" foo = 1 bar = 2

```

sometimes really hard to read.

---

<div class="post-metadata">

**Author:** ![sstroemer](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Post date:** [January 5, 2023, 11:38pm UTC](https://discourse.julialang.org/t/prevent-juliaformatter-from-adding-whitespaces-to-logging-arguments/92547/2 "2023-01-05T23:38:11Z")

</div>

Additional question, is there a way to prevent

```julia
Dict(
    key => val
    for (key, val) in foo_dict
)

foo = [
    "too long", "for a single line"
]

```

being changed to

```julia
Dict(
    key => val for
    (key, val) in foo_dict
)

foo =
    ["too long", "for a single line"]

```
