mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
encode latex after everything else
This commit is contained in:
parent
61812b173d
commit
50622a3127
1 changed files with 1 additions and 1 deletions
|
@ -61,10 +61,10 @@ def mungeLatex(deck, latex):
|
||||||
if match.group(1) in entitydefs:
|
if match.group(1) in entitydefs:
|
||||||
latex = latex.replace(match.group(), entitydefs[match.group(1)])
|
latex = latex.replace(match.group(), entitydefs[match.group(1)])
|
||||||
latex = re.sub("<br( /)?>", "\n", latex)
|
latex = re.sub("<br( /)?>", "\n", latex)
|
||||||
latex = latex.encode("utf-8")
|
|
||||||
latex = (deck.getVar("latexPre") + "\n" +
|
latex = (deck.getVar("latexPre") + "\n" +
|
||||||
latex + "\n" +
|
latex + "\n" +
|
||||||
deck.getVar("latexPost"))
|
deck.getVar("latexPost"))
|
||||||
|
latex = latex.encode("utf-8")
|
||||||
return latex
|
return latex
|
||||||
|
|
||||||
def buildImg(deck, latex):
|
def buildImg(deck, latex):
|
||||||
|
|
Loading…
Reference in a new issue