// running python with -OO will discard docstrings -> __doc__ is None
if prop.__doc__:
spec["desc"] = " ".join(x.strip()for x in prop.__doc__.strip().split("\n\n")[0].split("\n"))
else:
spec["desc"] = ""
spec["default"] = prop.class_default(glyphclass)
After Change
// running python with -OO will discard docstrings -> __doc__ is None
if descriptor.__doc__:
spec["desc"] = "\n ".join(textwrap.dedent(descriptor.__doc__).split("\n"))
else:
spec["desc"] = ""
spec["default"] = descriptor.class_default(glyphclass)