mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove underline hack, more robust bold hack for osx
This commit is contained in:
parent
2749e5af45
commit
5a71cd84a3
1 changed files with 2 additions and 5 deletions
|
@ -239,11 +239,8 @@ def restoreHeader(widget, key):
|
|||
def mungeQA(deck, txt):
|
||||
txt = renderLatex(deck, txt)
|
||||
txt = stripSounds(txt)
|
||||
# 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;")
|
||||
# osx webkit doesn't understand font weight 600
|
||||
txt = re.sub("font-weight:.+?;", "font-weight: bold", txt)
|
||||
return txt
|
||||
|
||||
def applyStyles(widget):
|
||||
|
|
Loading…
Reference in a new issue