From: Vsevolod Stakhov Date: Wed, 4 Jul 2018 18:02:44 +0000 (+0100) Subject: [Fix] Fix styles propagation X-Git-Tag: 1.7.8~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f691aef00875f4fd8f0c49a045ab12cc9ae06f2;p=thirdparty%2Frspamd.git [Fix] Fix styles propagation --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 24a471a84e..dc41bee809 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -2582,14 +2582,23 @@ rspamd_html_propagate_style (struct html_content *hc, bl->font_color.d.comp.b = 0; bl->font_color.valid = TRUE; } + else { + push_block = TRUE; + } if (!bl->background_color.valid) { memcpy (&bl->background_color, &hc->bgcolor, sizeof (hc->bgcolor)); } + else { + push_block = TRUE; + } if (bl->font_size == (guint)-1) { bl->font_size = 16; /* Default for browsers */ } + else { + push_block = TRUE; + } if (push_block && !(tag->flags & FL_CLOSED)) { g_queue_push_tail (blocks, bl);