Explorar el Código

Simplifying ruby results code.

Moving org-babel-ruby-table-or-results into the :results value branch of org-babel-evaluate-ruby
Dan Davison hace 16 años
padre
commit
a285289603
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lisp/langs/org-babel-ruby.el

+ 1 - 1
lisp/langs/org-babel-ruby.el

@@ -154,7 +154,7 @@ last statement in BODY."
                                                   (mapcar #'org-babel-trim raw)))))))
       (case result-type
         (output (mapconcat #'identity (reverse (cdr results)) "\n"))
-        (value (car results))))))
+        (value (org-babel-ruby-table-or-results (car results)))))))
 
 (defun org-babel-ruby-read-string (string)
   "Strip \\\"s from around ruby string"