From 87ddb244ea492c72fd19dbc7dfdf8a1c7c660b28 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Jan 2024 09:14:29 -0700 Subject: [PATCH] [otBase] Add comment based on review feedback --- Lib/fontTools/ttLib/tables/otBase.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py index 18c17d72f..8df7c236b 100644 --- a/Lib/fontTools/ttLib/tables/otBase.py +++ b/Lib/fontTools/ttLib/tables/otBase.py @@ -1146,6 +1146,9 @@ class BaseTable(object): except KeyError: raise # XXX on KeyError, raise nice error value = conv.xmlRead(attrs, content, font) + # Some manually-written tables have a conv.repeat of "" + # to represent lists. Hence comparing to None here to + # allow those lists to be read correctly from XML. if conv.repeat is not None: seq = getattr(self, conv.name, None) if seq is None: