Changed paths:
M Lib/fontTools/designspaceLib/__init__.py
M Tests/designspaceLib/designspace_test.py
Log Message:
-----------
[designspaceLib] Read an empty <lib> element as an empty lib
readLib() and readLibElement() indexed libElement[0] unconditionally, so a
designspace file containing an empty <lib> element (document level or inside
an instance) raised IndexError instead of loading.
Both now skip an element with no children, leaving lib at its default empty
dict, which is what removing the <lib> lines entirely already produced.
Adds test_emptyLib covering both the document-level and instance-level cases.