nijel/weblate — pull request #321 by bertm (2013-06-23 14:58:57+00:00)
Title: autofix: fix ReplaceTrailingDotsWithEllipsis to accept empty source strings

Having the ReplaceTrailingDotsWithEllipsis autofix enabled results in an _IndexError: string index out of range_ error whenever an empty source string is used (which is unlikely, but not technically impossible).

This patch solves this problem by first checking for non-emptiness of the source string.