mail word wrapping breaks urls and other words

Bug #28649 reported by Paul Sladen on 2006-01-16
106
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned

Bug Description

Malone, the bug-tracking component of Launchpad keeps subscribers informed about the status of a bug by emailing them updates.

If a URL appears in this email that is longer than $length character (seen with 75) then the URL is word-wrapped, making it inconvient and hard to click on the link, eg:

  http://www.paul.sladen.org/ubuntu/bugs/acpi-
support_0.50-0ubuntu1.debdiff

The word-wrapping algorithm should make an exception for "long words" where the word starts with "(f|ht)tps?:"

Matthew Paul Thomas (mpt) wrote :

Related to bug 2804.

On Mon, Jan 16, 2006 at 01:08:31AM -0000, Paul Sladen wrote:
> If a URL appears in this email that is longer than $length character
> (seen with 75) then the URL is word-wrapped, making it inconvient and
> hard to click on the link, eg:
>
> http://www.paul.sladen.org/ubuntu/bugs/acpi-
> support_0.50-0ubuntu1.debdiff
>
> The word-wrapping algorithm should make an exception for "long words"
> where the word starts with "(f|ht)tps?:"

Yes, it should. Long words are usually not wrapped, but they seem to be
wrapped if they contain a '-'. I'll take a look at how to fix it.

    status confirmed
    assignee bjornt

Changed in malone:
assignee: nobody → bjornt
status: Unconfirmed → Confirmed

If you happen to use the textwrap module from the standard Python library, then this might be of interest to you: textwrap in Python 2.3 wraps URLs that contain hyphens, while textwrap in Python 2.4 doesn't.

Diogo Matsubara (matsubara) wrote :

This is not a malone specific problem. After discussing with Curtis, he explained to me that all our emails are wrapped using the same wrapping utility hence moving to -foundations.

summary: - Malone word-wraps URLs when sending out emails
+ Launchpad word-wraps URLs when sending out emails
Changed in launchpad-foundations:
assignee: Björn Tillenius (bjornt) → nobody

This also seems to affect team invitation emails

Curtis Hovey (sinzui) on 2010-12-26
tags: added: bugs questions
Curtis Hovey (sinzui) on 2011-05-04
tags: added: teams
Curtis Hovey (sinzui) on 2011-06-10
Changed in launchpad:
importance: Medium → Low
summary: - Launchpad word-wraps URLs when sending out emails
+ mail word wrappping breaks urls and other words
summary: - mail word wrappping breaks urls and other words
+ mail word wrapping breaks urls and other words
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers