Handle case where two spaces are before a period.

From #6412.