Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Newlines preceding boundaries
@ 1998-11-18  1:45 Hrvoje Niksic
  0 siblings, 0 replies; only message in thread
From: Hrvoje Niksic @ 1998-11-18  1:45 UTC (permalink / raw)



Newlines should always precede closing boundaries, regardless of
whether the part ends with a newline.  As the specs explain, the
preceding newline is the part of the boundary.  This patch should fix
it.

1998-11-18  Hrvoje Niksic  <hniksic@srce.hr>

	* mml.el (mml-generate-mime-1): Always precede closing boundary
	with newline.

--- mml.el.orig	Wed Nov 18 02:40:36 1998
+++ mml.el	Wed Nov 18 02:41:04 1998
@@ -153,13 +153,9 @@
       (insert "\n")
       (setq cont (cddr cont))
       (while cont
-	(unless (bolp)
-	  (insert "\n"))
-	(insert "--" mml-boundary "\n")
+	(insert "\n--" mml-boundary "\n")
 	(mml-generate-mime-1 (pop cont)))
-      (unless (bolp)
-	(insert "\n"))
-      (insert "--" mml-boundary "--\n")))
+      (insert "\n--" mml-boundary "--\n")))
    (t
     (error "Invalid element: %S" cont))))
 

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Q: What's an IBM man-year?
A: 730 people trying to get a project done before noon.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-11-18  1:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-18  1:45 [PATCH] Newlines preceding boundaries Hrvoje Niksic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).