diff options
author | Bastien Guerry <bzg@gnu.org> | 2014-01-07 14:22:53 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@gnu.org> | 2014-01-07 14:22:53 +0100 |
commit | 3c8b09ca2e01b0ef0c1b6651fab54194f0019fdc (patch) | |
tree | ca02feb436782a74af050f15c02843da84a95f4a /lisp/org/ox-org.el | |
parent | 2b6b4f204c819569734c092532d56da85eef503b (diff) | |
download | emacs-3c8b09ca2e01b0ef0c1b6651fab54194f0019fdc.tar.gz |
Merge Org version 8.2.5c.
Diffstat (limited to 'lisp/org/ox-org.el')
-rw-r--r-- | lisp/org/ox-org.el | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lisp/org/ox-org.el b/lisp/org/ox-org.el index d35d1c05f29..3b2e55e2d45 100644 --- a/lisp/org/ox-org.el +++ b/lisp/org/ox-org.el @@ -22,15 +22,8 @@ ;;; Commentary: -;; This library implements an Org back-end for Org exporter. -;; -;; It introduces two interactive functions, `org-org-export-as-org' -;; and `org-org-export-to-org', which export, respectively, to -;; a temporary buffer and to a file. -;; -;; A publishing function is also provided: `org-org-publish-to-org'. - ;;; Code: + (require 'ox) (declare-function htmlize-buffer "htmlize" (&optional buffer)) @@ -121,7 +114,10 @@ setting of `org-html-htmlize-output-type' is 'css." (defun org-org-identity (blob contents info) "Transcode BLOB element or object back into Org syntax. CONTENTS is its contents, as a string or nil. INFO is ignored." - (org-export-expand blob contents t)) + (let ((case-fold-search t)) + (replace-regexp-in-string + "^[ \t]*#\\+ATTR_[-_A-Za-z0-9]+:\\(?: .*\\)?\n" "" + (org-export-expand blob contents t)))) (defun org-org-headline (headline contents info) "Transcode HEADLINE element back into Org syntax. |