mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
don't remove empty spans
The regex was not matching nested spans properly, leading to invalid output on decks like the Heisig one.
This commit is contained in:
parent
8e1ed0dacd
commit
b01f089ee1
1 changed files with 0 additions and 1 deletions
|
@ -475,7 +475,6 @@ order by ordinal""", mid)):
|
|||
t[k] = re.sub("(?i)font-family: ?arial;?", "", t[k])
|
||||
t[k] = re.sub("color: ?#000(000)?;?", "", t[k])
|
||||
t[k] = re.sub("white-space: ?pre-wrap;?", "", t[k])
|
||||
t[k] = re.sub('<span style=" *">(.+?)</span>', '\\1', t[k])
|
||||
# new furigana handling
|
||||
if "japanese" in m['name'].lower():
|
||||
if k == 'qfmt':
|
||||
|
|
Loading…
Reference in a new issue