|
@@ -2353,24 +2353,24 @@ INFO may provide the values of these header arguments (in the
|
|
|
;; possibly wrap result
|
|
|
(cond
|
|
|
((assq :wrap (nth 2 info))
|
|
|
- (let ((name (or (cdr (assq :wrap (nth 2 info))) "RESULTS")))
|
|
|
- (funcall wrap (concat "#+BEGIN_" name)
|
|
|
- (concat "#+END_" (car (split-string name)))
|
|
|
+ (let ((name (or (cdr (assq :wrap (nth 2 info))) "results")))
|
|
|
+ (funcall wrap (concat "#+begin_" name)
|
|
|
+ (concat "#+end_" (car (split-string name)))
|
|
|
nil nil (concat "{{{results(@@" name ":") "@@)}}}")))
|
|
|
((member "html" result-params)
|
|
|
- (funcall wrap "#+BEGIN_EXPORT html" "#+END_EXPORT" nil nil
|
|
|
+ (funcall wrap "#+begin_export html" "#+end_export" nil nil
|
|
|
"{{{results(@@html:" "@@)}}}"))
|
|
|
((member "latex" result-params)
|
|
|
- (funcall wrap "#+BEGIN_EXPORT latex" "#+END_EXPORT" nil nil
|
|
|
+ (funcall wrap "#+begin_export latex" "#+end_export" nil nil
|
|
|
"{{{results(@@latex:" "@@)}}}"))
|
|
|
((member "org" result-params)
|
|
|
(goto-char beg) (when (org-at-table-p) (org-cycle))
|
|
|
- (funcall wrap "#+BEGIN_SRC org" "#+END_SRC" nil nil
|
|
|
+ (funcall wrap "#+begin_src org" "#+end_src" nil nil
|
|
|
"{{{results(src_org{" "})}}}"))
|
|
|
((member "code" result-params)
|
|
|
(let ((lang (or lang "none")))
|
|
|
- (funcall wrap (format "#+BEGIN_SRC %s%s" lang results-switches)
|
|
|
- "#+END_SRC" nil nil
|
|
|
+ (funcall wrap (format "#+begin_src %s%s" lang results-switches)
|
|
|
+ "#+end_src" nil nil
|
|
|
(format "{{{results(src_%s[%s]{" lang results-switches)
|
|
|
"})}}}")))
|
|
|
((member "raw" result-params)
|
|
@@ -2379,7 +2379,7 @@ INFO may provide the values of these header arguments (in the
|
|
|
;; Stay backward compatible with <7.9.2
|
|
|
(member "wrap" result-params))
|
|
|
(goto-char beg) (when (org-at-table-p) (org-cycle))
|
|
|
- (funcall wrap ":RESULTS:" ":END:" 'no-escape nil
|
|
|
+ (funcall wrap ":results:" ":end:" 'no-escape nil
|
|
|
"{{{results(" ")}}}"))
|
|
|
((and inline (member "file" result-params))
|
|
|
(funcall wrap nil nil nil nil "{{{results(" ")}}}"))
|