diff --git a/anki/latex.py b/anki/latex.py index 565cca0ac..46b2bd027 100644 --- a/anki/latex.py +++ b/anki/latex.py @@ -63,6 +63,8 @@ def _latexFromHtml(col, latex): "Convert entities and fix newlines." for match in re.compile("&([a-z]+);", re.IGNORECASE).finditer(latex): if match.group(1) in entitydefs: + if match.group() == " ": + continue latex = latex.replace(match.group(), entitydefs[match.group(1)]) latex = re.sub("", "\n", latex) latex = stripHTML(latex)