[AddonManager] Strip whitespace from other_files

Strip whitespace from the file name in the macro metadata __Files__
field.
This commit is contained in:
Gaël Écorchard
2018-10-22 15:21:54 +02:00
committed by Yorik van Havre
parent d5e150841d
commit 1052ea6469

View File

@@ -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