From: Vsevolod Stakhov Date: Thu, 8 Jul 2021 18:24:06 +0000 (+0100) Subject: [Minor] Fix misprint X-Git-Tag: 3.0~190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9308a4f33c1be3f8057d5a9dc4d60400f58b221;p=thirdparty%2Frspamd.git [Minor] Fix misprint --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 346f876440..b8a5e1d32e 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -2138,6 +2138,9 @@ TEST_CASE("html text extraction") /* Colors */ {"goodbye cruel" "world", "goodbye cruelworld"}, + /* Font-size propagation */ + {"

goodbye cruelworld

", + "goodbye world\n"}, /* Newline before tag -> must be space */ {"goodbye cruel\n" "world", "goodbye cruel world"}, diff --git a/src/libserver/html/html_block.hxx b/src/libserver/html/html_block.hxx index 64b53ed7cf..8416bbc5a5 100644 --- a/src/libserver/html/html_block.hxx +++ b/src/libserver/html/html_block.hxx @@ -135,7 +135,7 @@ struct html_block { * 5) Parent size is undefined and our size is < 0 - tricky stuff, assume some defaults */ auto size_prop = [&](auto mask_val, auto &our_val, auto other_val, auto default_val) constexpr -> void { - if (!(mask & mask_val)) { + if ((mask & mask_val)) { /* We have our value */ if (our_val < 0) { if (other.mask & mask_val) {