We're using a custom ToStringBuilder that adds some tweaking to the output/indention. If the attribute is a complex object, it adds 3 spaces after the newline - so it's better readable. to-string-verifier fails on this since it does not expect those 3 spaces to be there. It would be great, if this check for spaces could be exposed to the outside world, so someone could tweak it. Maybe one could also think about, to offer an option, to ignore such whitespaces completely and just focus on the textual parts like attributes, commas etc. WDYT?
We're using a custom ToStringBuilder that adds some tweaking to the output/indention. If the attribute is a complex object, it adds 3 spaces after the newline - so it's better readable. to-string-verifier fails on this since it does not expect those 3 spaces to be there. It would be great, if this check for spaces could be exposed to the outside world, so someone could tweak it. Maybe one could also think about, to offer an option, to ignore such whitespaces completely and just focus on the textual parts like attributes, commas etc. WDYT?