Compress spaces in submission titles #726

wants to merge 1 commit into from

2 participants


This patch simply runs spaceCompress() from 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.

reddit member

Thanks, implemented a similar fix that will also get rid of pesky newlines and tabs in titles: 89ff4e6

@Deimos Deimos closed this Mar 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment