mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-23 20:48:39 +00:00
fixed bug with exportation of ruby arrays
This commit is contained in:
parent
9652615618
commit
64e01ac324
|
@ -48,7 +48,7 @@ automatically generated wrapper for `litorgy-script-execute'.")
|
|||
def main
|
||||
%s
|
||||
end
|
||||
puts main
|
||||
puts main().inspect
|
||||
")
|
||||
|
||||
(defvar litorgy-script-python-wrapper-method
|
||||
|
@ -89,7 +89,9 @@ executed through litorgy."
|
|||
(format "\t%s\n" line))
|
||||
(butlast body-lines) "\n")
|
||||
(format "\treturn %s\n" (car (last body-lines)))))))
|
||||
;; (message (buffer-substring (point-min) (point-max))) ;; debug script
|
||||
(shell-command-on-region (point-min) (point-max) cmd nil 'replace)
|
||||
;; (message (buffer-string)) ;; debug results
|
||||
(litorgy-script-table-or-results (buffer-string))))))
|
||||
|
||||
(defun litorgy-script-var-to-ruby/python (var)
|
||||
|
|
4
rorg.org
4
rorg.org
|
@ -229,14 +229,14 @@ following message =no result returned by source block=.
|
|||
|
||||
** TODO ruby arrays not recognized as such
|
||||
|
||||
Something is wrong in [[file:litorgy/ligorgy-script.el]] related to the
|
||||
Something is wrong in [[file:litorgy/litorgy-script.el]] related to the
|
||||
recognition of ruby arrays as such.
|
||||
|
||||
#+begin_src ruby :results replace
|
||||
[1, 2, 3, 4]
|
||||
#+end_src
|
||||
|
||||
: 1
|
||||
| 1 | 2 | 3 | 4 |
|
||||
|
||||
#+begin_src python :results replace
|
||||
[1, 2, 3, 4]
|
||||
|
|
|
@ -33,6 +33,12 @@ This is a source block, and lets see the results
|
|||
:the_results
|
||||
#+end_src
|
||||
|
||||
lets see the source, and results for a ruby array
|
||||
#+begin_src ruby :results replace
|
||||
[1, 2, 3, 4].map{ |n| n * 2 }
|
||||
#+end_src
|
||||
|
||||
|
||||
** emacs-lisp
|
||||
|
||||
a table
|
||||
|
|
Loading…
Reference in a new issue