mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
update getBase call for preview
This commit is contained in:
parent
bdba8cea83
commit
30949edbc3
1 changed files with 1 additions and 1 deletions
|
@ -1107,7 +1107,7 @@ class PreviewDialog(QDialog):
|
||||||
"\ndiv { white-space: pre-wrap; }")
|
"\ndiv { white-space: pre-wrap; }")
|
||||||
styles = runFilter("addStyles", styles, c)
|
styles = runFilter("addStyles", styles, c)
|
||||||
self.dialog.webView.setHtml(
|
self.dialog.webView.setHtml(
|
||||||
('<html><head>%s</head><body>' % getBase(self.deck)) +
|
('<html><head>%s</head><body>' % getBase(self.deck, c)) +
|
||||||
"<style>" + styles + "</style>" +
|
"<style>" + styles + "</style>" +
|
||||||
runFilter("drawQuestion", mungeQA(self.deck, c.htmlQuestion()),
|
runFilter("drawQuestion", mungeQA(self.deck, c.htmlQuestion()),
|
||||||
c) +
|
c) +
|
||||||
|
|
Loading…
Reference in a new issue