#20246: Use non-breakable space between amount and units -------------------------------------+------------------------------------- Reporter: vzima | Owner: Type: | EmilStenstrom Cleanup/optimization | Status: assigned Component: Template system | Version: master Severity: Normal | Resolution: Keywords: dceu13 | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by erikr):
* keywords: => dceu13 * needs_better_patch: 0 => 1 Comment: To clarify: humanize isn't broken with this patch: it's behaviour becomes inconsistent, as it calls timesince for some timeframes, and has it's own code for others. Fixing this all through humanize is very painful, so my recommendation is to give utils.timesince an optional argument like `avoid_wrapping=True`, so that humanize can use that to never get the non- breaking spaces. This is not ideal, and we should fix humanize for this one day, but at least it means the same template tag always shows the same behaviour. Other than that, it would be good if the tests have a comment about what `\xa0` is supposed to mean, as that is otherwise not obvious. -- Ticket URL: <https://code.djangoproject.com/ticket/20246#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.