From 569b546d5bcee995286229144f9d1a5b84f0948a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 16 Jul 2021 10:49:09 +0100 Subject: [PATCH] [Minor] Fix style propagation --- src/libserver/html/html_block.hxx | 1 + src/libserver/html/html_tests.cxx | 3 +++ 2 files changed, 4 insertions(+) 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" -- 2.39.5