Re: [elixir-core:11205] [proposal] add padding to Inspect.Opts

2022-12-01 Thread José Valim
Right, given the behaviour can be achieved, I would rather rely on post-processing compared to adding more complexity to the codebase, unless there is a reason not to. Note you could also perform a String.replace(string, "\n", "\n"). On Thu, Dec 1, 2022 at 6:17 PM Daniel Kukuła wrote: > Rec

Re: [elixir-core:11205] [proposal] add padding to Inspect.Opts

2022-12-01 Thread Daniel Kukuła
Recently I did a pr to hammox to use pretty printing in the inspected map. Currently this is inspected as one line single line and it's a pain to look at when you have an mismatch in a struct. The way hammox displays the errors is every nested error is padded 2 spaces deeper. I had to split the i