This patch simply runs spaceCompress() from filters.py on the submission title.
Helps with API clients to prevent crazy formatting like this:
Of course the alternative is to handle whitespace compression on the client side, but when 99% of posts have well-formatted titles, it's easy to get blindsided by the rare one that doesn't.
Compress spaces in submission titles
Thanks, implemented a similar fix that will also get rid of pesky newlines and tabs in titles: 89ff4e6