summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index c7afc54f9..ccc7f310d 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -863,7 +863,7 @@ rspamd_html_process_tag (rspamd_mempool_t *pool, struct html_content *hc,
tag->parent = *cur_level;
- if (!(tag->flags & CM_INLINE)) {
+ if (!(tag->flags & (CM_INLINE|CM_EMPTY))) {
/* Block tag */
if (tag->flags & (FL_CLOSING|FL_CLOSED)) {
if (!*cur_level) {