diff options
-rw-r--r-- | src/stkutil.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index 522021c8..9cac8503 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -5957,10 +5957,8 @@ static void start_format(GString *string, guint16 attr) g_string_append(string, "text-decoration: line-through;"); /* add any color */ - if (fg) - g_string_append_printf(string, "color: %s;", html_colors[fg]); - if (bg) - g_string_append_printf(string, "background-color: %s;", + g_string_append_printf(string, "color: %s;", html_colors[fg]); + g_string_append_printf(string, "background-color: %s;", html_colors[bg]); g_string_append(string, "\">"); } |