fix exporting re

This commit is contained in:
Damien Elmes 2009-01-17 22:45:00 +09:00
parent ff4cc7b0af
commit cfc458e45f

View file

@ -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):