mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
possible fix for supermemo importer (#480)
Not sure why the original author was converting angle brackets separately - that code breaks the example provided in #480, but I'm not sure if removing it will break other files.
This commit is contained in:
parent
c3d7a63f7e
commit
e610776bb0
1 changed files with 3 additions and 2 deletions
|
@ -63,6 +63,7 @@ class SuperMemoElement(SmartDict):
|
|||
class SupermemoXmlImporter(NoteImporter):
|
||||
|
||||
needMapper = False
|
||||
allowHTML = True
|
||||
|
||||
"""
|
||||
Supermemo XML export's to Anki parser.
|
||||
|
@ -136,8 +137,8 @@ class SupermemoXmlImporter(NoteImporter):
|
|||
#my sm2004 also ecaped & char in escaped sequences.
|
||||
s = re.sub(u'&',u'&',s)
|
||||
#unescaped solitary chars < or > that were ok for minidom confuse btfl soup
|
||||
s = re.sub(u'>',u'>',s)
|
||||
s = re.sub(u'<',u'<',s)
|
||||
#s = re.sub(u'>',u'>',s)
|
||||
#s = re.sub(u'<',u'<',s)
|
||||
|
||||
return unicode(btflsoup(s,convertEntities=btflsoup.HTML_ENTITIES ))
|
||||
|
||||
|
|
Loading…
Reference in a new issue