Skip to content

Commit

Permalink
Avoid use of asFea, assume everything is a node
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Aug 18, 2022
1 parent 99019de commit af63947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/fontTools/feaLib/ast.py
Expand Up @@ -1409,10 +1409,10 @@ def asFea(self, indent="") -> str:
res = "sub "
if len(self.prefix) or len(self.suffix) or self.forceChain:
if len(self.prefix):
res += " ".join(map(asFea, self.prefix)) + " "
res += " ".join(map(lambda x: x.asFea(), self.prefix)) + " "
res += asFea(self.glyph) + "'"
if len(self.suffix):
res += " " + " ".join(map(asFea, self.suffix))
res += " " + " ".join(map(lambda x: x.asFea(), self.suffix))
else:
res += asFea(self.glyph)
replacement = self.replacement or [NullGlyph()]
Expand Down

0 comments on commit af63947

Please sign in to comment.