1. Luke Plant
  2. django-easyfilters


Luke Plant  committed 0e6b385

Added fix for filters being broken over a line with hyphens

  • Participants
  • Parent commits e01bbe7
  • Branches default

Comments (0)

Files changed (1)

File django_easyfilters/filterset.py

View file
  • Ignore whitespace
 def non_breaking_spaces(val):
     # This helps a lot with presentation, by stopping the links+count from being
     # split over a line end.
+    val = val.replace(u'-', u'\u2011')
     return mark_safe(u' '.join(escape(part) for part in val.split(u' ')))