From 527c7d2a69707ac4266a9ba9ba48bdeabf63e8fd Mon Sep 17 00:00:00 2001
From: Radek Czajka <rczajka@rczajka.pl>
Date: Fri, 13 Dec 2019 13:59:51 +0100
Subject: [PATCH 1/1] fix

---
 src/catalogue/templates/catalogue/book_text.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html
index c08f76cff..9f349bc23 100644
--- a/src/catalogue/templates/catalogue/book_text.html
+++ b/src/catalogue/templates/catalogue/book_text.html
@@ -117,9 +117,9 @@
 
     {% for insert in inserts %}
       {% with text=insert.choose %}
-        <div class="dynamic-insert{% if text.image %} with-image{% endif %}" style="{% if text.text_color %}color: {{ text.text_color }};{% endif %}{% if text.background_color %}{{ text.background_color }}{% endif %}" data-paragraphs="{{ insert.paragraphs }}">
+        <div class="dynamic-insert{% if text.image %} with-image{% endif %}" style="{% if text.text_color %}color: {{ text.text_color }};{% endif %}" data-paragraphs="{{ insert.paragraphs }}">
           <a href="{% url 'club' %}">
-            <div class="text">
+            <div class="text" style="{% if text.background_color %}background-color:{{ text.background_color }}{% endif %}">
               {{ text.text }}
             </div>
             {% if text.image %}
-- 
2.20.1