commit b31f8e2: [Minor] Head tags are default invisible
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jun 23 12:21:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-06-23 12:26:15 +0100
URL: https://github.com/rspamd/rspamd/commit/b31f8e288bd2c6a8dfca92eab4bd0456960ed1eb
[Minor] Head tags are default invisible
---
src/libserver/html/html.cxx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 694a172b2..6a7a6facf 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1655,6 +1655,9 @@ html_process_input(rspamd_mempool_t *pool,
if (tag->flags & CM_BLOCK) {
tag->block->set_display(css::css_display_value::DISPLAY_BLOCK);
}
+ else if (tag->flags & CM_HEAD) {
+ tag->block->set_display(css::css_display_value::DISPLAY_HIDDEN);
+ }
else {
tag->block->set_display(css::css_display_value::DISPLAY_INLINE);
}
More information about the Commits
mailing list