add hack for qt underline bug back in

This commit is contained in:
Damien Elmes 2010-02-10 23:00:50 +09:00
parent 11357d5736
commit b7cd8a1385

View file

@ -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):