summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-23 12:26:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-23 12:26:15 +0100
commitb31f8e288bd2c6a8dfca92eab4bd0456960ed1eb (patch)
tree5a8ef34140f3a7db8a755d4e37e4cf749293a40b /src
parentc8c91b2f1ee7ee321c68219b9eb515359a5ae962 (diff)
downloadrspamd-b31f8e288bd2c6a8dfca92eab4bd0456960ed1eb.tar.gz
rspamd-b31f8e288bd2c6a8dfca92eab4bd0456960ed1eb.zip
[Minor] Head tags are default invisible
Diffstat (limited to 'src')
-rw-r--r--src/libserver/html/html.cxx3
1 files changed, 3 insertions, 0 deletions
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);
}