From 075b12d89ac3119a211c93059047054020b0efdf Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 6 Oct 2024 23:19:13 +0200 Subject: fix bug --- anki-card-template/bulk-cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'anki-card-template') diff --git a/anki-card-template/bulk-cleanup.py b/anki-card-template/bulk-cleanup.py index f123cf6..797bcf8 100755 --- a/anki-card-template/bulk-cleanup.py +++ b/anki-card-template/bulk-cleanup.py @@ -26,7 +26,7 @@ def recurseplainify(soup): output += f"*{recurseplainify(el)}*" continue - if el.name == 'ruby' and len(el.text) > 0: + if el.name == 'ruby' and len(el.text) > 0 and el.rt is not None: output += f'[{el.text}]({el.rt.text})' continue -- cgit v1.2.3