summaryrefslogtreecommitdiff
path: root/Mailman/HTMLFormatter.py
diff options
context:
space:
mode:
authorbwarsaw2002-11-18 21:03:40 +0000
committerbwarsaw2002-11-18 21:03:40 +0000
commit05680dc805dee943b5e1696ee9dfd280c934de1d (patch)
tree9104c929bad3ba909f167173791dddde4bc9a924 /Mailman/HTMLFormatter.py
parent686741b63b4b94a712931b4bfefd161f3c5ae5bb (diff)
downloadmailman-05680dc805dee943b5e1696ee9dfd280c934de1d.tar.gz
mailman-05680dc805dee943b5e1696ee9dfd280c934de1d.tar.zst
mailman-05680dc805dee943b5e1696ee9dfd280c934de1d.zip
Simplification and fixes for i18n in the archives. This is related to
SF patch #634303, but I think it's better because it actually removes code instead of adding it. We'll see what kind of holes Martin shoots through my optimism. ;) Specifically, unicode_quote() -> Utils.uquote() everywhere quick_maketext(): We can get rid of the `raw' argument since we're never going to wrap html text here. Also, put in a defense for lang=None and mlist=None (although in practice that doesn't happen). Finally -- and this is the key -- pass the interpolated text through Utils.uncanonstr() so that what we get back will be a unicode, with any characters outside the lang's charset html-ified. I think this simplifies matters by always encoding the indices to the charset of the list's preferred language, at the expense of potentially larger pages (which I don't care about). html_TOC(): Add a http-equiv meta tag indicating the charset of this page, which should fix display for the table of contents. Note that the various archtoc.html templates need updating but I will check those changes in next. HyperArchive.add_article(), .choose_charset(), .update_dirty_archives(): Removed.
Diffstat (limited to 'Mailman/HTMLFormatter.py')
0 files changed, 0 insertions, 0 deletions