diff options
| author | Barry Warsaw | 2012-03-04 01:08:33 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-04 01:08:33 -0500 |
| commit | fe855654a1c67fad869c3035548b6f1b51350258 (patch) | |
| tree | 72668b2a4d227645bbaa5324d68eb668c93c61b4 /src/mailman/utilities/string.py | |
| parent | 15ffdccfc82fb1f958368ff9e4f243bd56a9351e (diff) | |
| download | mailman-fe855654a1c67fad869c3035548b6f1b51350258.tar.gz mailman-fe855654a1c67fad869c3035548b6f1b51350258.tar.zst mailman-fe855654a1c67fad869c3035548b6f1b51350258.zip | |
- Test welcome message notifications.
- welcome.txt is no longer inserted into subscribeack.txt. This latter is
renamed to welcome.txt as the default welcome message.
Diffstat (limited to '')
| -rw-r--r-- | src/mailman/utilities/string.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/utilities/string.py b/src/mailman/utilities/string.py index c3bd3620c..7470bd476 100644 --- a/src/mailman/utilities/string.py +++ b/src/mailman/utilities/string.py @@ -197,7 +197,7 @@ def wrap(text, column=70, honor_leading_ws=True): add_paragraph_break = False paragraph_text = EMPTYSTRING.join(paragraph) # Just copy the blank lines to the final set of paragraphs. - if paragraph == NL: + if len(paragraph) == 0 or paragraph == NL: wrapped_paragraphs.append(NL) # Choose the wrapper based on whether the paragraph is indented or # not. Also, do not wrap indented paragraphs if honor_leading_ws is |
