Skip to content

Commit

Permalink
Bugfix: Incorrect behavior for single cap normal
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Oct 7, 2022
1 parent 39ac216 commit e22456d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions enlighten/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ def to_html(self, text):
last_added = to_out[-1] if to_out else None

# Look for normal to close span
if value == normal[0] and \
normal[1:] == [val[0] for val in parsed[: self.normal_rem or None]]:
if value == normal[0] and normal[1:] == [val[0] for val in parsed[: self.normal_rem]]:

# Clear rest of normal
for _ in range(self.normal_rem):
Expand Down

0 comments on commit e22456d

Please sign in to comment.