#19496: truncatechars_html
---------------------------------+------------------------------------
Reporter: esevece | Owner: slurms
Type: New feature | Status: assigned
Component: Template system | Version: 1.4
Severity: Normal | Resolution:
Keywords: truncatchars | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by DHessing):
* needs_better_patch: 0 => 1
Comment:
{{{
>>> truncatechars_html('<h1>test</h1>', 5)
u'<h1>t ...</h1>'
}}}
Should return u'<h1>te...</h1>'. Truncatewords adds an extra space in
front of the ellipsis but truncatechars doesn't.
--
Ticket URL: <https://code.djangoproject.com/ticket/19496#comment:4>
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.