From 97d8344822db58db8af51c19f63c61979f07561b Mon Sep 17 00:00:00 2001
From: j <0x006A@0x2620.org>
Date: Wed, 19 Nov 2014 16:54:45 +0000
Subject: [PATCH] turn
into space
---
pandora/item/models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pandora/item/models.py b/pandora/item/models.py
index 3e6ca171b..4c2fb18f4 100644
--- a/pandora/item/models.py
+++ b/pandora/item/models.py
@@ -1009,7 +1009,7 @@ class Item(models.Model):
def update_layer_facet(self, key):
current_values = [a['value']
for a in self.annotations.filter(layer=key).distinct().values('value')]
- current_values = [ox.decode_html(ox.strip_tags(v)) for v in current_values]
+ current_values = [ox.decode_html(ox.strip_tags(v.replace('
', ' '))) for v in current_values]
saved_values = [i.value for i in Facet.objects.filter(item=self, key=key)]
removed_values = filter(lambda i: i not in current_values, saved_values)
if removed_values: