Using o-b-chomp rather than o-b-trim on R output.

This keeps columns of STDOUT correctly aligned.
This commit is contained in:
Dan Davison 2009-07-19 17:35:49 -04:00
parent 162b522728
commit 7ac2e0d45f

View file

@ -137,9 +137,9 @@ last statement in BODY, as elisp."
(if (string-match comint-prompt-regexp el)
(substring el (match-end 0))
el))))
(mapcar #'org-babel-trim raw))))))
(mapcar #'org-babel-chomp raw))))))
(case result-type
(output (org-babel-chomp (mapconcat #'identity results "\n")))
(output (mapconcat #'identity results "\n"))
(value (org-babel-R-process-value-result
(org-babel-import-elisp-from-file tmp-file) column-names-p)))))))