mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
add hack for qt underline bug back in
This commit is contained in:
parent
11357d5736
commit
b7cd8a1385
1 changed files with 3 additions and 1 deletions
|
@ -200,9 +200,11 @@ def restoreHeader(widget, key):
|
||||||
def mungeQA(deck, txt):
|
def mungeQA(deck, txt):
|
||||||
txt = renderLatex(deck, txt)
|
txt = renderLatex(deck, txt)
|
||||||
txt = stripSounds(txt)
|
txt = stripSounds(txt)
|
||||||
# webkit currently doesn't handle bold properly
|
# webkit currently doesn't handle bold/underline properly
|
||||||
txt = txt.replace("font-weight: 600;",
|
txt = txt.replace("font-weight: 600;",
|
||||||
"font-weight: 900;")
|
"font-weight: 900;")
|
||||||
|
txt = txt.replace("text-decoration: underline;",
|
||||||
|
"border-bottom: 1px solid #000;")
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def applyStyles(widget):
|
def applyStyles(widget):
|
||||||
|
|
Loading…
Reference in a new issue