mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04: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)
|
||||
|
||||
def mungeHTML(self, txt):
|
||||
txt = re.sub(r"<br>$", "", txt)
|
||||
if txt in ('<br>', '<div><br></div>'):
|
||||
return ''
|
||||
return txt
|
||||
|
||||
# Setting/unsetting the current note
|
||||
|
|
Loading…
Reference in a new issue