Skip to content

Commit

Permalink
check for description length before subscripting (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTripleV committed Jan 3, 2023
1 parent 5558484 commit e009ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxext/opengraph/descriptionparser.py
Expand Up @@ -101,7 +101,7 @@ def dispatch_departure(self, node: nodes.Element) -> None:

# Separate end of list from text
if isinstance(node, nodes.Sequential):
if self.description[-1] == ",":
if self.description and self.description[-1] == ",":
self.description = self.description[:-1]
self.description += "."
self.list_level -= 1
Expand Down

0 comments on commit e009ab9

Please sign in to comment.