Skip to content

Commit e009ab9

Browse files
authored
check for description length before subscripting (#90)
1 parent 5558484 commit e009ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxext/opengraph/descriptionparser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def dispatch_departure(self, node: nodes.Element) -> None:
101101

102102
# Separate end of list from text
103103
if isinstance(node, nodes.Sequential):
104-
if self.description[-1] == ",":
104+
if self.description and self.description[-1] == ",":
105105
self.description = self.description[:-1]
106106
self.description += "."
107107
self.list_level -= 1

0 commit comments

Comments
 (0)