[AddonManager] Strip whitespace from other_files
Strip whitespace from the file name in the macro metadata __Files__ field.
This commit is contained in:
committed by
Yorik van Havre
parent
d5e150841d
commit
1052ea6469
@@ -84,7 +84,7 @@ class Macro(object):
|
||||
number_of_required_fields -= 1
|
||||
match = re.match(re_files, l)
|
||||
if match:
|
||||
self.other_files = match.group(2).split(',')
|
||||
self.other_files = [f.strip() for f in match.group(2).split(',')]
|
||||
number_of_required_fields -= 1
|
||||
if number_of_required_fields <= 0:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user