mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
break on div start, not end
This commit is contained in:
parent
9c43e5928c
commit
8a06ab7bfe
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ def _latexFromHtml(col, latex):
|
|||
# entitydefs defines nbsp as \xa0 instead of a standard space, so we
|
||||
# replace it first
|
||||
latex = latex.replace(" ", " ")
|
||||
latex = re.sub("<br( /)?>|</div>", "\n", latex)
|
||||
latex = re.sub("<br( /)?>|<div>", "\n", latex)
|
||||
# replace <div> etc with spaces
|
||||
latex = re.sub("<.+?>", " ", latex)
|
||||
latex = stripHTML(latex)
|
||||
|
|
Loading…
Reference in a new issue