#5849 -- Strip whitespace from blocktrans

See [ticket 5849](https://code.djangoproject.com/ticket/5849) for background on this PR. The patch was written by mpessas, the PR rebased by me. This PR supersedes PR #803.