[Mailman-Developers] How do I turn off line wrapping on
template files?
Carson Gaspar
carson@taltos.org
Tue, 05 Mar 2002 16:48:04 -0500
I just added a feature to wrap, that lets you specify line breaks. If the
last 2 characters on a line are \n, those characters are removed, and that
line is not filled.
--- Utils.py.DIST Tue Mar 5 13:42:25 2002
+++ Utils.py Tue Mar 5 13:42:31 2002
@@ -107,6 +107,9 @@
continue
if honor_leading_ws and line[0] in whitespace:
fillthis = 0
+ elif line[-2] == '\\' and line[-1] == 'n':
+ fillthis = 0
+ line = line[0:-2]
else:
fillthis = 1
if fillprev and fillthis: