diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 23:19:13 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 23:19:13 +0200 |
commit | 075b12d89ac3119a211c93059047054020b0efdf (patch) | |
tree | 43cb59da7ca2d5a37557fa52e1a07ab17a3b94d4 /anki-card-template | |
parent | d0e334ca8567da06f11cac7a44696796a6dc06db (diff) |
Diffstat (limited to 'anki-card-template')
-rwxr-xr-x | anki-card-template/bulk-cleanup.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |