mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
strip trailing <br> tag when saving field
This commit is contained in:
parent
ecb683cdd1
commit
be14703e7f
1 changed files with 1 additions and 2 deletions
|
@ -259,8 +259,7 @@ class Editor:
|
||||||
print("uncaught cmd", cmd)
|
print("uncaught cmd", cmd)
|
||||||
|
|
||||||
def mungeHTML(self, txt):
|
def mungeHTML(self, txt):
|
||||||
if txt == "<br>":
|
txt = re.sub(r"<br>$", "", txt)
|
||||||
txt = ""
|
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
# Setting/unsetting the current note
|
# Setting/unsetting the current note
|
||||||
|
|
Loading…
Reference in a new issue