Skip to content

Commit

Permalink
Also suppress sup in 'al' super style.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Aug 25, 2023
1 parent cfcf358 commit 31d03b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/sphinxcontrib/bibtex/style/referencing/basic_super.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ def role_names(self) -> Iterable[str]:
]

def outer(self, role_name: str, children: List["BaseText"]) -> "Node":
return tag("sup")[
self.bracket.outer(children, brackets="al" not in role_name, capfirst=False)
]
if "al" not in role_name:
return tag("sup")[
self.bracket.outer(children, brackets=True, capfirst=False)
]
else:
self.bracket.outer(children, brackets=False, capfirst=False)

def inner(self, role_name: str) -> "Node":
return join2(sep1=self.pre_text_sep, sep2=self.post_text_sep)[
Expand Down

0 comments on commit 31d03b3

Please sign in to comment.