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.

../Mailman/Cgi/listinfo.py:
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:[email protected]] 
Sent: Wednesday, January 20, 2010 11:05 AM
To: Tim Van Dyne; [email protected]
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 <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to