mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix preview & identation
This commit is contained in:
parent
8180996c16
commit
928bc99e1a
1 changed files with 2 additions and 1 deletions
|
@ -803,7 +803,8 @@ class PreviewDialog(QDialog):
|
||||||
def updateCard(self):
|
def updateCard(self):
|
||||||
c = self.cards[self.currentCard]
|
c = self.cards[self.currentCard]
|
||||||
self.dialog.webView.setHtml(
|
self.dialog.webView.setHtml(
|
||||||
"<style>" + self.deck.css + "</style>" +
|
"<style>" + self.deck.css +
|
||||||
|
"\ndiv { white-space: pre-wrap; }</style>" +
|
||||||
mungeQA(self.deck, c.htmlQuestion()) +
|
mungeQA(self.deck, c.htmlQuestion()) +
|
||||||
"<br><br><hr><br><br>" +
|
"<br><br><hr><br><br>" +
|
||||||
mungeQA(self.deck, c.htmlAnswer()))
|
mungeQA(self.deck, c.htmlAnswer()))
|
||||||
|
|
Loading…
Reference in a new issue