From fa06a0d56c4934bcfbf8a07b4875ce8efb824b4d Mon Sep 17 00:00:00 2001 From: Jasper Berghoef Date: Tue, 6 Dec 2016 16:46:06 +0100 Subject: [PATCH] Cleaner inline html Signed-off-by: Jasper Berghoef --- src/personalisation/wagtail_hooks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/personalisation/wagtail_hooks.py b/src/personalisation/wagtail_hooks.py index 97c8a02..46eb4b5 100644 --- a/src/personalisation/wagtail_hooks.py +++ b/src/personalisation/wagtail_hooks.py @@ -220,7 +220,10 @@ class SegmentSummaryPanel(object): segment_count = Segment.objects.count() target_url = reverse('personalisation_segment_modeladmin_index') title = _("Segments") - return mark_safe('
  • {}{}
  • '.format(target_url, segment_count, title)) + return mark_safe(""" +
  • + {}{} +
  • """.format(target_url, segment_count, title)) @hooks.register('construct_homepage_summary_items')