diff options
author | Mark Sapiro <mark@msapiro.net> | 2015-10-14 09:42:19 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2015-10-14 09:42:19 -0700 |
commit | b7f4af5909c45a4084174d6b5a4c3ea9742fd997 (patch) | |
tree | 95eaf52e5679d67789a9aff0f47e8ec36834742f /Mailman/Handlers/CookHeaders.py | |
parent | 7eb1148b3ef7df8e8de1fe7b8deef1532772f4ff (diff) | |
download | mailman2-b7f4af5909c45a4084174d6b5a4c3ea9742fd997.tar.gz mailman2-b7f4af5909c45a4084174d6b5a4c3ea9742fd997.tar.xz mailman2-b7f4af5909c45a4084174d6b5a4c3ea9742fd997.zip |
hanged CookHeaders to default to using space rather than tab as
continuation_ws when folding headers.
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
-rwxr-xr-x | Mailman/Handlers/CookHeaders.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py index 63e630cb..acb79166 100755 --- a/Mailman/Handlers/CookHeaders.py +++ b/Mailman/Handlers/CookHeaders.py @@ -34,7 +34,7 @@ from Mailman import Utils from Mailman.i18n import _ from Mailman.Logging.Syslog import syslog -CONTINUATION = ',\n\t' +CONTINUATION = ',\n ' COMMASPACE = ', ' MAXLINELEN = 78 @@ -52,7 +52,7 @@ def _isunicode(s): nonascii = re.compile('[^\s!-~]') -def uheader(mlist, s, header_name=None, continuation_ws='\t', maxlinelen=None): +def uheader(mlist, s, header_name=None, continuation_ws=' ', maxlinelen=None): # Get the charset to encode the string in. Then search if there is any # non-ascii character is in the string. If there is and the charset is # us-ascii then we use iso-8859-1 instead. If the string is ascii only @@ -350,7 +350,7 @@ def prefix_subject(mlist, msg, msgdata): lines = str(subject).splitlines() else: lines = subject.splitlines() - ws = '\t' + ws = ' ' if len(lines) > 1 and lines[1] and lines[1][0] in ' \t': ws = lines[1][0] msgdata['origsubj'] = subject |