mirror of
https://github.com/ankitects/anki.git
synced 2025-11-27 15:07:11 -05:00
make sure new lines have a space
This commit is contained in:
parent
dca34dfc48
commit
7564ddec40
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ class DeckModel(QAbstractTableModel):
|
|||
self.updateCard(index)
|
||||
s = self.columns[index.column()][1](index)
|
||||
s = s.replace("<br>", u" ")
|
||||
s = s.replace("<br />", u" ")
|
||||
s = s.replace("\n", u" ")
|
||||
s = stripHTML(s)
|
||||
s = re.sub("\[sound:[^]]+\]", "", s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue