diff options
Diffstat (limited to 'Mailman/HTMLFormatter.py')
| -rw-r--r-- | Mailman/HTMLFormatter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index c0bc75284..a6c53446d 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -426,6 +426,7 @@ class HTMLFormatter: os.makedirs(dstdir, 02775) finally: os.umask(omask) - # Now copy all the .html files over - for file in [f for f in os.listdir(srcdir) if f.endswith('.html')]: + # Now copy all the .html and .txt files over + for file in [f for f in os.listdir(srcdir) + if f.endswith('.html') or f.endswith('.txt')]: shutil.copy(os.path.join(srcdir, file), dstdir) |
