Find and replace newlines in __repr__ results