diff --git a/bin/scripts/name_parser/FontnameParser.py b/bin/scripts/name_parser/FontnameParser.py index 805869638..9fdc0e896 100644 --- a/bin/scripts/name_parser/FontnameParser.py +++ b/bin/scripts/name_parser/FontnameParser.py @@ -88,7 +88,7 @@ class FontnameParser: continue i = len(self.basename) - len(m.group(0)) if i < 0: - self.basename = m.expand(replacement) + self.basename = m.expand(replacement).rstrip() self.rest = self.rest[-(i+1):].lstrip() else: self.basename = m.expand(replacement) + self.basename[len(m.group(0)):]