diff --git a/bookwyrm/templates/book/editions/format_filter.html b/bookwyrm/templates/book/editions/format_filter.html
index c722b24f..4e0f3c9b 100644
--- a/bookwyrm/templates/book/editions/format_filter.html
+++ b/bookwyrm/templates/book/editions/format_filter.html
@@ -2,15 +2,17 @@
{% load i18n %}
{% block filter %}
-
-
-
+
+
+
+
+
{% endblock %}
diff --git a/bookwyrm/templates/book/editions/language_filter.html b/bookwyrm/templates/book/editions/language_filter.html
index d9051fd8..d14e3353 100644
--- a/bookwyrm/templates/book/editions/language_filter.html
+++ b/bookwyrm/templates/book/editions/language_filter.html
@@ -2,15 +2,17 @@
{% load i18n %}
{% block filter %}
-
-
-
+
+
+
+
+
{% endblock %}
diff --git a/bookwyrm/templates/book/editions/search_filter.html b/bookwyrm/templates/book/editions/search_filter.html
index f2345a68..91c76422 100644
--- a/bookwyrm/templates/book/editions/search_filter.html
+++ b/bookwyrm/templates/book/editions/search_filter.html
@@ -2,7 +2,9 @@
{% load i18n %}
{% block filter %}
-
-
+
+
+
+
{% endblock %}
diff --git a/bookwyrm/templates/snippets/filters_panel/filters_panel.html b/bookwyrm/templates/snippets/filters_panel/filters_panel.html
index 84b27163..c3ddeeea 100644
--- a/bookwyrm/templates/snippets/filters_panel/filters_panel.html
+++ b/bookwyrm/templates/snippets/filters_panel/filters_panel.html
@@ -38,9 +38,11 @@
{% block filter_fields %}
{% endblock %}
-
diff --git a/bookwyrm/templatetags/shelf_tags.py b/bookwyrm/templatetags/shelf_tags.py
index 6c4f59c3..7aef638f 100644
--- a/bookwyrm/templatetags/shelf_tags.py
+++ b/bookwyrm/templatetags/shelf_tags.py
@@ -36,19 +36,22 @@ def get_next_shelf(current_shelf):
def active_shelf(context, book):
"""check what shelf a user has a book on, if any"""
user = context["request"].user
- return cache.get_or_set(
- f"active_shelf-{user.id}-{book.id}",
- lambda u, b: (
- models.ShelfBook.objects.filter(
- shelf__user=u,
- book__parent_work__editions=b,
- ).first()
- or False
- ),
- user,
- book,
- timeout=15552000,
- ) or {"book": book}
+ return (
+ cache.get_or_set(
+ f"active_shelf-{user.id}-{book.id}",
+ lambda u, b: (
+ models.ShelfBook.objects.filter(
+ shelf__user=u,
+ book__parent_work__editions=b,
+ ).first()
+ or False
+ ),
+ user,
+ book,
+ timeout=15552000,
+ )
+ or {"book": book}
+ )
@register.simple_tag(takes_context=False)