]> granicus.if.org Git - python/commitdiff
Added a note about the somewhat kludgey behavior of the message
authorBarry Warsaw <barry@python.org>
Fri, 19 Oct 2001 04:34:42 +0000 (04:34 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 19 Oct 2001 04:34:42 +0000 (04:34 +0000)
epilogue, based on the discussion in this SF bug report:

https://sourceforge.net/tracker/index.php?func=detail&aid=472481&group_id=25568&atid=384678

Doc/lib/emailmessage.tex

index ea2d0dfacd410b7008c49aa1304a8ca5761a5acc..fbf30cf46d89366b7ef07198fb22dd79994163cb 100644 (file)
@@ -390,4 +390,14 @@ Note that if the message object has no preamble, the
 The \var{epilogue} attribute acts the same way as the \var{preamble}
 attribute, except that it contains text that appears between the last
 boundary and the end of the message.
+
+One note: when generating the flat text for a \mimetype{multipart}
+message that has no \var{epilogue} (using the standard
+\class{Generator} class), no newline is added after the closing
+boundary line.  If the message object has an \var{epilogue} and its
+value does not start with a newline, a newline is printed after the
+closing boundary.  This seems a little clumsy, but it makes the most
+practical sense.  The upshot is that if you want to ensure that a
+newline get printed after your closing \mimetype{multipart} boundary,
+set the \var{epilogue} to the empty string.
 \end{datadesc}