strip trailing <br> tag when saving field

This commit is contained in:
Damien Elmes 2017-09-02 13:26:57 +10:00
parent ecb683cdd1
commit be14703e7f

View file

@ -259,8 +259,7 @@ class Editor:
print("uncaught cmd", cmd)
def mungeHTML(self, txt):
if txt == "<br>":
txt = ""
txt = re.sub(r"<br>$", "", txt)
return txt
# Setting/unsetting the current note