mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix exporting re
This commit is contained in:
parent
ff4cc7b0af
commit
cfc458e45f
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class Exporter(object):
|
|||
"Escape newlines and tabs, and strip Anki HTML."
|
||||
text = text.replace("\n", "<br>")
|
||||
text = text.replace("\t", " " * 8)
|
||||
text = re.sub('<span class="fm.*"?>(.*?)</span>', '\\1', text)
|
||||
text = re.sub('<span class="fm.*?">(.*?)</span>', '\\1', text)
|
||||
return text
|
||||
|
||||
def cardIds(self):
|
||||
|
|
Loading…
Reference in a new issue