From: Vsevolod Stakhov Date: Fri, 16 Jul 2021 09:49:09 +0000 (+0100) Subject: [Minor] Fix style propagation X-Git-Tag: 3.0~153 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=569b546d5bcee995286229144f9d1a5b84f0948a;p=rspamd.git [Minor] Fix style propagation --- diff --git a/src/libserver/html/html_block.hxx b/src/libserver/html/html_block.hxx index 8416bbc5a..01b5b17b9 100644 --- a/src/libserver/html/html_block.hxx +++ b/src/libserver/html/html_block.hxx @@ -157,6 +157,7 @@ struct html_block { /* We propagate parent if defined */ if (other.mask & mask_val) { our_val = other_val; + mask |= mask_val; } /* Otherwise do nothing */ } diff --git a/src/libserver/html/html_tests.cxx b/src/libserver/html/html_tests.cxx index 73f2ad81b..e98ab61c2 100644 --- a/src/libserver/html/html_tests.cxx +++ b/src/libserver/html/html_tests.cxx @@ -164,6 +164,9 @@ TEST_CASE("html text extraction") " 

", " Sincerely,\n Skype Web\n"}, {"lala", "lala"}, + {"
\n" + "DONKEY\n" + "
", ""}, /* bgcolor propagation */ {"\n" "FRevie"