fmt:shorten should ellide at word boundaries

Bug #63052 reported by Francis J. Lacoste
0
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Currently, fmt:shorten just crop the text at the requested minus the elliding characters. It would be better if the implementation only cropped at word boundaries.

Where string = 'A long description of a bug.'
e.g. string/fmt:shorten/15 -> 'A long ...' instead of 'A long descr...'

Tags: lp-web tales
Changed in launchpad:
importance: Undecided → Low
status: Unconfirmed → Confirmed
Curtis Hovey (sinzui)
tags: added: tales
affects: launchpad-foundations → launchpad-web
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.