mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
remove another newline case from empty fields
thanks to dlon: https://github.com/dae/anki/pull/273
This commit is contained in:
parent
57d566d670
commit
318765cb2e
1 changed files with 2 additions and 1 deletions
|
|
@ -289,7 +289,8 @@ class Editor:
|
||||||
print("uncaught cmd", cmd)
|
print("uncaught cmd", cmd)
|
||||||
|
|
||||||
def mungeHTML(self, txt):
|
def mungeHTML(self, txt):
|
||||||
txt = re.sub(r"<br>$", "", txt)
|
if txt in ('<br>', '<div><br></div>'):
|
||||||
|
return ''
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
# Setting/unsetting the current note
|
# Setting/unsetting the current note
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue