Remove condition improperly added in 49318f6

The intention was to check for strings with only spaces but the test checked for
spaces at the start of the string. Neither seems useful.
This commit is contained in:
Gunter Labes 2022-02-15 20:00:00 +01:00 committed by GitHub
parent e8e5387069
commit 8f4331f9d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2250,7 +2250,7 @@ to be called on their own".format(filename, num))
print('"%s", line %d: %s doesn`t need translation mark (translatable string is empty)' \
% (filename, i+1, key))
lines[i] = lines[i].replace("=_","=")
if markcheck and value and not value.startswith("$") and not value.startswith("{") and not re.match(" +", value) and not has_tr_mark and not ("wmllint: ignore" in comment or "wmllint: noconvert" in comment):
if markcheck and value and not value.startswith("$") and not value.startswith("{") and not has_tr_mark and not ("wmllint: ignore" in comment or "wmllint: noconvert" in comment):
print('"%s", line %d: %s needs translation mark' \
% (filename, i+1, key))
lines[i] = lines[i].replace('=', "=_ ", 1)