Browse Source

Merge branch 'maint'

Bastien Guerry 12 years ago
parent
commit
44ad106d69
1 changed files with 10 additions and 2 deletions
  1. 10 2
      lisp/ob-scala.el

+ 10 - 2
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)
 ")