From 0f6b0054f3d8a73c29f8890c448330ce98207609 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 30 Sep 2009 12:59:54 +0900 Subject: [PATCH] underline workaround --- ankiqt/ui/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ankiqt/ui/utils.py b/ankiqt/ui/utils.py index 0bc1454c6..b189b41dd 100644 --- a/ankiqt/ui/utils.py +++ b/ankiqt/ui/utils.py @@ -196,6 +196,9 @@ def restoreHeader(widget, key): def mungeQA(deck, txt): txt = renderLatex(deck, txt) txt = stripSounds(txt) + # webkit currently doesn't handle underline + txt = txt.replace("text-decoration: underline;", + "border-bottom: 1px solid #000;") return txt def getBase(deck):