summaryrefslogtreecommitdiff
path: root/Mailman/Errors.py
diff options
context:
space:
mode:
authortkikuchi2005-08-28 05:31:27 +0000
committertkikuchi2005-08-28 05:31:27 +0000
commit067dc15b2432bb285ab5e4a3eac6f4dddd67ed19 (patch)
treeceac72251ee33742bfff7626c99dde163d3da946 /Mailman/Errors.py
parentbc1dad4f90a26ade7c4dd6d2863de88856e8b4b6 (diff)
downloadmailman-067dc15b2432bb285ab5e4a3eac6f4dddd67ed19.tar.gz
mailman-067dc15b2432bb285ab5e4a3eac6f4dddd67ed19.tar.zst
mailman-067dc15b2432bb285ab5e4a3eac6f4dddd67ed19.zip
Diffstat (limited to 'Mailman/Errors.py')
-rw-r--r--Mailman/Errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Errors.py b/Mailman/Errors.py
index 96e34f1cb..2e80f21a5 100644
--- a/Mailman/Errors.py
+++ b/Mailman/Errors.py
@@ -141,6 +141,12 @@ class RejectMessage(HandlerError):
def __init__(self, notice=None):
if notice is None:
notice = _('Your message was rejected')
+ if notice.endswith('\n\n'):
+ pass
+ elif notice.endswith('\n'):
+ notice += '\n'
+ else:
+ notice += '\n\n'
self.__notice = notice
def notice(self):