diff options
| author | bwarsaw | 2001-10-10 04:26:29 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-10 04:26:29 +0000 |
| commit | 13fbb5598d82129e85f0356a1f9a8f0baafcc011 (patch) | |
| tree | f09f4fd3ff6627fdab324d10f31f2aeb7e0e6f2e /Mailman/Cgi | |
| parent | ca433fb25b7db198580922f71afad505bfcc120c (diff) | |
| download | mailman-13fbb5598d82129e85f0356a1f9a8f0baafcc011.tar.gz mailman-13fbb5598d82129e85f0356a1f9a8f0baafcc011.tar.zst mailman-13fbb5598d82129e85f0356a1f9a8f0baafcc011.zip | |
show_post_requests(): When deciding to show a smaller part of a held
message (because of ADMINDB_PAGE_TEXT_LIMIT), join the strings with
the empty string, not newlines.
Diffstat (limited to 'Mailman/Cgi')
| -rw-r--r-- | Mailman/Cgi/admindb.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 100bee068..3948baa90 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -35,6 +35,7 @@ from Mailman.Cgi import Auth from Mailman.htmlformat import * from Mailman.Logging.Syslog import syslog +EMPTYSTRING = '' NL = '\n' # Set up i18n. Until we know which list is being requested, we use the @@ -251,7 +252,7 @@ def show_post_requests(mlist, id, info, total, count, form): chars += len(line) if chars > mm_cfg.ADMINDB_PAGE_TEXT_LIMIT: break - body = NL.join(lines)[:mm_cfg.ADMINDB_PAGE_TEXT_LIMIT] + body = EMPTYSTRING.join(lines)[:mm_cfg.ADMINDB_PAGE_TEXT_LIMIT] hdrtxt = NL.join(['%s: %s' % (k, v) for k, v in msg.items()]) # Okay, we've reconstituted the message just fine. Now for the fun part! |
