Skip to content

Commit

Permalink
Remove mistaken condition from text_fn
Browse files Browse the repository at this point in the history
In wikitext, '\n\n' should break a list into two.
  • Loading branch information
kristian-clausal committed Jun 27, 2023
1 parent 4fc6c90 commit efeca85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wikitextprocessor/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,7 @@ def pop_until_nth_list(ctx: "Wtp", list_token: str) -> None:

def text_fn(ctx, token):
"""Inserts the token as raw text into the parse tree."""
if token != "\n":
close_begline_lists(ctx)
close_begline_lists(ctx)

node = ctx.parser_stack[-1]

Expand Down

0 comments on commit efeca85

Please sign in to comment.