From b7cd8a1385c00144208761c4fd56b3dae1edfba3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 10 Feb 2010 23:00:50 +0900 Subject: [PATCH] add hack for qt underline bug back in --- ankiqt/ui/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/utils.py b/ankiqt/ui/utils.py index 4348f551a..3715e1377 100644 --- a/ankiqt/ui/utils.py +++ b/ankiqt/ui/utils.py @@ -200,9 +200,11 @@ def restoreHeader(widget, key): def mungeQA(deck, txt): txt = renderLatex(deck, 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;", "font-weight: 900;") + txt = txt.replace("text-decoration: underline;", + "border-bottom: 1px solid #000;") return txt def applyStyles(widget):