forked from mirrors/org-mode
Using o-b-chomp rather than o-b-trim on R output.
This keeps columns of STDOUT correctly aligned.
This commit is contained in:
parent
162b522728
commit
7ac2e0d45f
|
@ -137,9 +137,9 @@ last statement in BODY, as elisp."
|
||||||
(if (string-match comint-prompt-regexp el)
|
(if (string-match comint-prompt-regexp el)
|
||||||
(substring el (match-end 0))
|
(substring el (match-end 0))
|
||||||
el))))
|
el))))
|
||||||
(mapcar #'org-babel-trim raw))))))
|
(mapcar #'org-babel-chomp raw))))))
|
||||||
(case result-type
|
(case result-type
|
||||||
(output (org-babel-chomp (mapconcat #'identity results "\n")))
|
(output (mapconcat #'identity results "\n"))
|
||||||
(value (org-babel-R-process-value-result
|
(value (org-babel-R-process-value-result
|
||||||
(org-babel-import-elisp-from-file tmp-file) column-names-p)))))))
|
(org-babel-import-elisp-from-file tmp-file) column-names-p)))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue