Compare commits
1 Commits
d41e3838d5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a50d1261f |
@@ -220,7 +220,10 @@ def _parse_element_descriptors(text: str) -> dict[tuple[str, int], str]:
|
||||
continue
|
||||
idx = int(m.group(1))
|
||||
name = m.group(2).strip()
|
||||
if name:
|
||||
# sg_ses prints "<empty>" when an enclosure leaves the descriptor
|
||||
# string blank — treat that as no name so callers fall back to a
|
||||
# generic label.
|
||||
if name and name.lower() != "<empty>":
|
||||
names[(etype, idx)] = name
|
||||
return names
|
||||
|
||||
|
||||
Reference in New Issue
Block a user