summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-10-25 10:56:47 +0200
committerBastien Guerry <bzg@altern.org>2012-10-25 10:56:47 +0200
commit44ad106d691e5a2919fa098d1935c9ba45b88635 (patch)
tree0c14abb97032abc8693598b69cb7ea90e0c3d1e3
parent5c171435ba38955a160d191640cd577425055b55 (diff)
parentde7766f4b0f04d74a69e461b5aad4e07e91a20bc (diff)
downloadorg-mode-44ad106d691e5a2919fa098d1935c9ba45b88635.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ob-scala.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ob-scala.el b/lisp/ob-scala.el
index bd855a8..ea3c3f2 100644
--- a/lisp/ob-scala.el
+++ b/lisp/ob-scala.el
@@ -72,9 +72,17 @@ Emacs-lisp table, otherwise return the results as a string."
(defvar org-babel-scala-wrapper-method
- "(
+
+"var str_result :String = null;
+
+Console.withOut(new java.io.OutputStream() {def write(b: Int){
+}}) {
+ str_result = {
%s
-) asString print
+ }.toString
+}
+
+print(str_result)
")