mail word wrapping breaks urls and other words

Bug #28649 reported by Paul Sladen
106
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
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?:"

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Related to bug 2804.

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 28649] Malone word-wraps URLs when sending out emails

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
Revision history for this message
Marius Gedminas (mgedmin) wrote : Re: Malone word-wraps URLs when sending out emails

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.

Revision history for this message
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
Revision history for this message
Chris Jones (cmsj) wrote : Re: Launchpad word-wraps URLs when sending out emails

This also seems to affect team invitation emails

Curtis Hovey (sinzui)
tags: added: bugs questions
Curtis Hovey (sinzui)
tags: added: teams
Curtis Hovey (sinzui)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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