Compress spaces in submission titles #726

Closed
wants to merge 1 commit into from

2 participants

@talklittle

This patch simply runs spaceCompress() from filters.py on the submission title.

Helps with API clients to prevent crazy formatting like this:
F6oqXSP

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.

@Deimos
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