[feaLib] Fix double indentation of markClass
When a MarkClassDefinition is inside a block, it gets double indentation compared to the rest of the block. It should ignore the indent argument like other similar statements.
This commit is contained in:
parent
376b904352
commit
05329ed033
@ -425,7 +425,7 @@ class MarkClass(object):
|
||||
return tuple(self.glyphs.keys())
|
||||
|
||||
def asFea(self, indent=""):
|
||||
res = "\n".join(d.asFea(indent=indent) for d in self.definitions)
|
||||
res = "\n".join(d.asFea() for d in self.definitions)
|
||||
return res
|
||||
|
||||
|
||||
@ -440,8 +440,8 @@ class MarkClassDefinition(Statement):
|
||||
return self.glyphs.glyphSet()
|
||||
|
||||
def asFea(self, indent=""):
|
||||
return "{}markClass {} {} @{};".format(
|
||||
indent, self.glyphs.asFea(), self.anchor.asFea(),
|
||||
return "markClass {} {} @{};".format(
|
||||
self.glyphs.asFea(), self.anchor.asFea(),
|
||||
self.markClass.name)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user