[ mailman-Bugs-759842 ] Formatting archives that don't have newlines

SourceForge.net noreply at sourceforge.net
Mon Jul 28 17:59:59 EDT 2003


Bugs item #759842, was opened at 2003-06-24 09:23
Message generated for change (Comment added) made by phelim_gervase
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=759842&group_id=103

Category: Pipermail
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Pug Bainter (phelim_gervase)
Assigned to: Nobody/Anonymous (nobody)
Summary: Formatting archives that don't have newlines

Initial Comment:
I have a problem (mostly with M$ Outlook users) that
when a user sends a message without newlines in it
(because their email client auto-displays it "properly"
for them), the message gets stored just like this in
the archives as expected. The problem is that when the
message gets pulled up in the webpages, they will
appear as one long line instead of being formatted to
the size of the browser width.


----------------------------------------------------------------------

>Comment By: Pug Bainter (phelim_gervase)
Date: 2003-07-28 18:59

Message:
Logged In: YES 
user_id=484284

Please note that the <PRE Width=80> doesn't seem to work 
for many Internet Explorer users. I think it is supported in IE 
6.x and later.

----------------------------------------------------------------------

Comment By: Anthony Carter (karem_lore)
Date: 2003-07-17 08:37

Message:
Logged In: YES 
user_id=201573

Found the solution!

In the file HyperArch.py in $mailmanhome/Mailman/Archiver

search for <PRE> and replace it with <PRE Width=80> (change
80 to whatever you want).

Anthony

----------------------------------------------------------------------

Comment By: Anthony Carter (karem_lore)
Date: 2003-07-17 08:28

Message:
Logged In: YES 
user_id=201573

Right, well removing the <PRE></PRE> tags in the file

$mailman/Mailman/Archiver/HyperArch.py

does not fix the problem. In fact, it makes it worse.
However, I have yet to see if it is possible to substitute
it with a tag that will dictate the width of the text.

Will keep you posted.

Anthony

----------------------------------------------------------------------

Comment By: Anthony Carter (karem_lore)
Date: 2003-07-17 08:19

Message:
Logged In: YES 
user_id=201573

I notice that the archiver uses a <PRE> and </PRE> around
the article (from mailmanhome/templates/en/article.html. The
PRE tag says that no formatting should occur as it is
preformatted...I wonder what would happen if that PRE
disappeared somehow...

the text comes from whatever defines %(body)s in the Python
code somewhere. This mus also defines the PRE tag as it is
not in the template.

Anthony

----------------------------------------------------------------------

Comment By: Anthony Carter (karem_lore)
Date: 2003-07-17 08:06

Message:
Logged In: YES 
user_id=201573

Yep, I have this too. Did you get any possible resolution to
this?

I guess it should not be too difficult to add this
functionality (maybe within the mail2html part of the
conversion) to add a limit on width (I think there may be a
HTML possibility to enforce this). I don't know python,
unfortunately, to go trapsing through the mailman code.

I'll take a look though...

Anthony Carter

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=759842&group_id=103



More information about the Mailman-coders mailing list