Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/wikitextprocessor/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@ def text_fn(ctx: "Wtp", token: str) -> None:
sortid="parser/449",
)
_parser_pop(ctx, False)
continue
break

# Spaces at the beginning of a line indicate preformatted text
Expand Down Expand Up @@ -2241,9 +2242,9 @@ def token_iter(ctx: "Wtp", text: str) -> Iterator[tuple[bool, str]]:
# the length is longer than the end token was.
yield True, ">" + start
continue
# Partition on '', so that we can detect bold/italics
# Partition on ''+, so that we can detect bold/italics
parts = re.split(parts_re, line)
state = 0 # 1=in italic 2=in bold 3=in both
state = 0 # 1=in italic, 2=in bold, 3=in both
for i, part in enumerate(parts):
if part.startswith("''"):
# This is a bold/italic part. Scan the rest of the line
Expand Down