[Mailman-Users] Listinfo columns - can I wrap text

Tim Van Dyne Tim.VanDyne at valleyair.org
Wed Jan 20 20:15:20 CET 2010

I figured it out.
I didn't realize the obvious which was that it wouldn't wrap no matter
what I did to the table because it's one long string due to the
underscores_.  So after some digging (nobody here knows Python), we
added the replace function to the output name to remove the under_scores
and replace them with spaces.

Line 143:
Was>>		[Link(url, Bold(real_name)),

Is now>>    [Link(url, Bold(real_name.replace('_',' '))),

This made everything look so much better. Small victory, but we
celebrated :)

-----Original Message-----
From: Mark Sapiro [mailto:mark at msapiro.net] 
Sent: Wednesday, January 20, 2010 11:05 AM
To: Tim Van Dyne; mailman-users at python.org
Subject: Re: [Mailman-Users] Listinfo columns - can I wrap text

Tim Van Dyne wrote:

>Does anyone know of a way that I can hardcode the size of the columns
>and wrap the list name text?
>I'm running into the issue where some list names are lengthy and the
>description text is getting smashed to the right, primarily because we
>have our mailman page wrapped into our site's frame.  I notice that the
>description text wraps, but the name itself doesn't.

You can see the HTML that Mailman generates for that page by viewing
the page source in your browser.

Mailman doesn't specify any column widths for that table. It is the
browser that decides how to display it.

If you can say how you would want the HTML to be modified to produce
your desired result, I can suggest changes to Mailman/Cgi/listinfo.py
and possibly Mailman/htmlformat.py to produce that HTML.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list