summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-12-27 20:57:41 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-12-27 20:57:41 -0700
commit40264e9b75abb991c2072667236b87b8616e2a78 (patch)
tree227e0d35c5e3132bac2910838331688d25832b09
parentad6c199ccc17360b43ccb8b3aec140b9993d058b (diff)
downloadorg-mode-40264e9b75abb991c2072667236b87b8616e2a78.tar.gz
org-mime: call 'org and 'ascii hooks appropriately
patch by Niels Giesen * contrib/lisp/org-mime.el (org-mime-compose):
-rw-r--r--contrib/lisp/org-mime.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el
index 48c898e..68a3498 100644
--- a/contrib/lisp/org-mime.el
+++ b/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"))))))))