Browse Source

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

This keeps columns of STDOUT correctly aligned.
Dan Davison 16 years ago
parent
commit
7ac2e0d45f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/langs/org-babel-R.el

+ 2 - 2
lisp/langs/org-babel-R.el

@@ -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)))))))