We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a847e1 commit 7dcd5c5Copy full SHA for 7dcd5c5
wiktextract/page.py
@@ -2781,7 +2781,9 @@ def usex_template_fn(name, ht):
2781
ruby = []
2782
contents = item.children
2783
if lang_code == "ja":
2784
- if contents and re.match(r"\s*$", contents[0]):
+ print(contents)
2785
+ if (contents and isinstance(contents, str) and
2786
+ re.match(r"\s*$", contents[0])):
2787
contents = contents[1:]
2788
exp = ctx.parse(ctx.node_to_wikitext(contents),
2789
# post_template_fn=head_post_template_fn,
0 commit comments