Commits

Luke Plant committed 0e6b385

Added fix for filters being broken over a line with hyphens

Comments (0)

Files changed (1)

django_easyfilters/filterset.py

 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' ')))