Fixed bug affecting character counter for strings containing successive whitespaces

By Edouard on December 13, 2022

We’ve fixed a bug on the character counter used on the translation interface statistics and reporting in which a string containing several successive whitespace characters or similar (, \n, \r, \t) were counting as several characters. The new system now squishes these characters into a single whitespace to calculate the character count.

For instance, this string:

Hello how


are you?

Was counted as 19 characters. Now 18 characters.

We have updated the documentation about word count and character count to reflect these changes.