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 inspected message and then join it with padding - I think that inspect should support it out of the box so we don't have to post process the generated message.
html is just an example where it's useful- every time I did inspect in a template I remember the same problem - the inspected structure is one long line.
https://github.com/msz/hammox/blob/a7afe45fd0f8ba79d06fde0a75458f76853572b3/lib/hammox/type_match_error.ex#L150