diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-12-27 20:57:41 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-12-27 20:57:41 -0700 |
commit | 40264e9b75abb991c2072667236b87b8616e2a78 (patch) | |
tree | 227e0d35c5e3132bac2910838331688d25832b09 /contrib | |
parent | ad6c199ccc17360b43ccb8b3aec140b9993d058b (diff) |
org-mime: call 'org and 'ascii hooks appropriately
patch by Niels Giesen
* contrib/lisp/org-mime.el (org-mime-compose):
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/lisp/org-mime.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/lisp/org-mime.el b/contrib/lisp/org-mime.el index 48c898e4a..68a349884 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")))))))) |