Browse Source

org-mime: call 'org and 'ascii hooks appropriately

  patch by Niels Giesen

* contrib/lisp/org-mime.el (org-mime-compose):
Eric Schulte 8 years ago
parent
commit
40264e9b75
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/lisp/org-mime.el

+ 2 - 1
contrib/lisp/org-mime.el

@@ -293,7 +293,8 @@ export that region, otherwise export the entire body."
 	       (html (org-mime-apply-html-hook (car html-and-images))))
 	  (insert (org-mime-multipart
 		   (org-export-string
-		    (org-babel-trim (bhook body 'html))
+		    (org-babel-trim
+		     (bhook body (if (eq fmt 'html) 'org 'ascii)))
 		    (if (eq fmt 'html) 'org 'ascii))
 		   html)
 		  (mapconcat 'identity images "\n"))))))))