Skip to content

Commit

Permalink
Remove old kludge for handling "#:" lists
Browse files Browse the repository at this point in the history
Or an attempt at a kludge; I think this might have been
broken since inception.
  • Loading branch information
kristian-clausal committed Sep 16, 2024
1 parent 3c4fbe0 commit cd2f01c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wikitextprocessor/node_expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,8 @@ def recurse(node: Union[GeneralNode, WikiNodeListArgs]) -> str:
parts.append(recurse(node.children))
elif kind == NodeKind.LIST_ITEM:
parts.append(node.sarg)
prev_list = False
for x in node.children:
if prev_list:
parts.append(node.sarg + ":")
parts.append(recurse(x))
prev_list = isinstance(x, WikiNode) and x.kind == NodeKind.LIST
elif kind == NodeKind.PRE:
parts.append("<pre>")
parts.append(recurse(node.children))
Expand Down

0 comments on commit cd2f01c

Please sign in to comment.