Ver código fonte

Merge branch 'maint'

Bastien Guerry 11 anos atrás
pai
commit
3c5f938ae3
1 arquivos alterados com 7 adições e 4 exclusões
  1. 7 4
      contrib/lisp/org-mime.el

+ 7 - 4
contrib/lisp/org-mime.el

@@ -163,10 +163,13 @@ and images in a multipart/related part."
     ('semi (concat
             "--" "<<alternative>>-{\n"
             "--" "[[text/plain]]\n" plain
-	    (when images (concat "--" "<<alternative>>-{\n"))
-            "--" "[[text/html]]\n"  html
-	    images
-	    (when images (concat "--" "}-<<alternative>>\n"))
+	    (if (and images (> (length images) 0))
+		(concat "--" "<<related>>-{\n"
+			"--" "[[text/html]]\n"  html
+			images
+			"--" "}-<<related>>\n")
+	      (concat "--" "[[text/html]]\n"  html
+		      images))
             "--" "}-<<alternative>>\n"))
     ('vm "?")))