mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix the non-setting of white backgrounds.
This commit is contained in:
parent
be722989f3
commit
1e97b61bb1
1 changed files with 1 additions and 6 deletions
|
@ -494,13 +494,8 @@ order by ordinal""", mid)):
|
|||
t[k] = t[k].replace(
|
||||
"{{Reading}}", "{{furigana:Reading}}")
|
||||
# adjust css
|
||||
if t['bg'].lower() == "#ffffff":
|
||||
# a bit more intuitive default
|
||||
bg = "white"
|
||||
else:
|
||||
bg = t['bg']
|
||||
css = ""
|
||||
if t['bg'] != "white":
|
||||
if t['bg'] != "white" and t['bg'].lower() != "#ffffff":
|
||||
css = "background-color: %s;" % t['bg']
|
||||
if t['align']:
|
||||
css += "text-align: %s" % ("left", "right")[t['align']-1]
|
||||
|
|
Loading…
Reference in a new issue