mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Fixed furigana regexp. It now ignores HTML and doesn't break spacing.
This commit is contained in:
parent
78a209edec
commit
a766e0358e
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
import re
|
import re
|
||||||
from anki.hooks import addHook
|
from anki.hooks import addHook
|
||||||
|
|
||||||
r = r' ?([^[]+?)\[(.+?)\]([^ ]+?|$)'
|
r = r' ?([^ >]+?)\[(.+?)\]'
|
||||||
ruby = r'<ruby><rb>\1</rb><rt>\2</rt></ruby>'
|
ruby = r'<ruby><rb>\1</rb><rt>\2</rt></ruby>'
|
||||||
|
|
||||||
def noSound(repl):
|
def noSound(repl):
|
||||||
|
|
Loading…
Reference in a new issue