mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
we were replacing spans with spaces during review but not during media check. just strip the tags instead, which makes the media check consistent and doesn't result in multiple identical answers
This commit is contained in:
parent
85dfa4e5a4
commit
3326254eec
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ def _latexFromHtml(col, latex):
|
|||
# replace it first
|
||||
latex = latex.replace(" ", " ")
|
||||
latex = re.sub("<br( /)?>|<div>", "\n", latex)
|
||||
# replace <div> etc with spaces
|
||||
latex = re.sub("<.+?>", " ", latex)
|
||||
latex = re.sub("<.+?>", "", latex)
|
||||
latex = stripHTML(latex)
|
||||
return latex
|
||||
|
||||
|
|
Loading…
Reference in a new issue