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:
parent
e8e5387069
commit
8f4331f9d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue