summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2010-12-21 20:18:07 -0700
committerEric Schulte <schulte.eric@gmail.com>2010-12-21 20:18:07 -0700
commit1d3db31ca75d7396dd374199cb4188ffe081a944 (patch)
tree82af6c5b326470a0353656d6d430f0a6acf21578
parent9bf88fddfc530f2df7343e385148cdff9c97914d (diff)
downloadorg-mode-1d3db31ca75d7396dd374199cb4188ffe081a944.tar.gz
ob: better parsing of list output from scripting languages
* lisp/ob.el (org-babel-script-escape): Replace commas with spaces for better list reading when list items are packed with commas, e.g. Haskell list output.
-rw-r--r--lisp/ob.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index d03e240..8310bae 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1803,7 +1803,8 @@ block but are passed literally to the \"example-block\"."
(93 (if (or in-double in-single) ; ]
(cons 93 out)
(cons 41 out)))
- (44 (if (or in-double in-single) (cons 44 out) out)) ; ,
+ (44 (if (or in-double in-single) ; ,
+ (cons 44 out) (cons 32 out)))
(39 (if in-double ; '
(cons 39 out)
(setq in-single (not in-single)) (cons 34 out)))