mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
don't try and replace nbsp
This commit is contained in:
parent
3449abe8a0
commit
2012d0de39
1 changed files with 2 additions and 0 deletions
|
@ -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("<br( /)?>", "\n", latex)
|
||||
latex = stripHTML(latex)
|
||||
|
|
Loading…
Reference in a new issue