Comment 1 for bug 266467

Revision history for this message
Mark Sapiro (msapiro) wrote :

Originator: NO

Thank you for the suggested style. It looks promising.

It is not clear to me whether you operate a Mailman site or are just a
member of lists, but a site can easily accomplish what you've done by
making site/language versions of the article.html template per
<http://wiki.list.org/x/jYA9> with the following changes:

Change the doctype declaration to

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

and add the following style in the <head> section

<style type="text/css">
pre
{
  white-space: pre-wrap; /* css-3 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
  _white-space: pre; /* IE only hack to re-specify in addition to
word-wrap */
}
</style>

Of course the browser specific parts of the style don't pass validation at
<http://jigsaw.w3.org/css-validator/> but that's not unexpected. Note
however that the valid style

<style type="text/css">
pre
{
  white-space: pre-wrap; /* css-3 */
}
</style>

alone appears sufficient in Firefox 3.0.1, Opera 9.51 and Safari 3.1.2,
but not in Camino 1.6.3 or MSIE 7.0 and adding

  white-space: -moz-pre-wrap;

works in Camino.