浏览代码

Merge branch 'maint'

Bastien Guerry 12 年之前
父节点
当前提交
44ad106d69
共有 1 个文件被更改,包括 10 次插入2 次删除
  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)
 ")