void-packages/srcpkgs/anki/patches/fix_unescape.patch

12 lines
360 B
Diff
Raw Normal View History

--- a/aqt/reviewer.py
+++ b/aqt/reviewer.py
@@ -359,7 +359,7 @@
cor = stripHTML(cor)
# ensure we don't chomp multiple whitespace
cor = cor.replace(" ", " ")
- cor = parser.unescape(cor)
+ cor = html.unescape(cor)
cor = cor.replace("\xa0", " ")
cor = cor.strip()
given = self.typedAnswer