From d52396d0a1c8efd6a0603d2913c539333a46ccf0 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Sun, 2 Aug 2020 22:15:22 +0200
Subject: [PATCH] Fix add_class_to_el templatetag to work with lists for
 classes

---
 aleksis/core/templatetags/html_helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/core/templatetags/html_helpers.py b/aleksis/core/templatetags/html_helpers.py
index a30a230ce..16238fcd0 100644
--- a/aleksis/core/templatetags/html_helpers.py
+++ b/aleksis/core/templatetags/html_helpers.py
@@ -15,6 +15,6 @@ def add_class_to_el(value: str, arg: str) -> str:
     soup = BeautifulSoup(value, "html.parser")
 
     for el in soup.find_all(el):
-        el["class"] = el.get("class", "") + f" {cls}"
+        el["class"] = el.get("class", []) + [cls]
 
     return str(soup)
-- 
GitLab