Skip to content

Commit

Permalink
chore(_balanced_quotes_shadow): rename append_match to append_bold
Browse files Browse the repository at this point in the history
  • Loading branch information
5j9 committed Apr 11, 2024
1 parent f2dfd06 commit 2c761c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wikitextparser/_wikitext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ def _balanced_quotes_shadow(self) -> bytearray:
odd_italics = False
odd_bold_italics = False
shadow_copy = self._shadow[:]
append_match = bold_matches.append
append_bold = bold_matches.append

def process_line():
nonlocal odd_italics
Expand Down Expand Up @@ -1058,7 +1058,7 @@ def process_line():
s, e = m.span(1)
if s != e: # four apostrophes, hide the first one
shadow_copy[s] = 95 # _
append_match(m)
append_bold(m)
else: # bold-italic
s, e = m.span(1)
es = e - s
Expand Down

0 comments on commit 2c761c5

Please sign in to comment.