Fix optdepends comments check

This commit is contained in:
jld3103 2021-08-18 13:25:53 +02:00
parent 2054f48133
commit c536baec33

View file

@ -620,7 +620,7 @@ def cmd_check(verbose, paths):
formatted = False
reason = 'Found literal \' although either a literal " or no qoutes should be used'
if ('=(' in line and ' ' in line and not line.endswith('=(')) or (hold_key and line.endswith(')')):
if ('=(' in line and ' ' in line and not '"' in line and not line.endswith('=(')) or (hold_key and line.endswith(')')):
formatted = False
reason = f'Multiple elements in a list need to be in separate lines'