|
@@ -36,7 +36,7 @@ class Wikilink(Node): |
|
|
if not '|' in args: |
|
|
if not '|' in args: |
|
|
self.text = args |
|
|
self.text = args |
|
|
else: |
|
|
else: |
|
|
self.text = parse_anything(args).nodes[len(self.args)-1:] |
|
|
|
|
|
|
|
|
self.text = parse_anything(args).nodes[len(list(a for a in self.args if len(a)))-1:] |
|
|
else: |
|
|
else: |
|
|
self.text = None |
|
|
self.text = None |
|
|
|
|
|
|
|
@@ -88,7 +88,7 @@ class Wikilink(Node): |
|
|
if arg := parse_anything(value): |
|
|
if arg := parse_anything(value): |
|
|
self._args = [node for node in str(arg.nodes[0]).split('|')] |
|
|
self._args = [node for node in str(arg.nodes[0]).split('|')] |
|
|
if len(self._args) > 0: |
|
|
if len(self._args) > 0: |
|
|
self._text = str(arg)[len('|'.join(str(a) for a in self._args)):] |
|
|
|
|
|
|
|
|
self._text = str(arg)[len('|'.join(str(a) for a in self._args))-1:] |
|
|
self._args.pop() |
|
|
self._args.pop() |
|
|
if len(self._text) == 0: |
|
|
if len(self._text) == 0: |
|
|
self._text = None |
|
|
self._text = None |
|
|