From ce3aa4ab2b4abbbca7870235f4f898ea9c4e590c Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 20 Jul 2012 08:33:19 -0600 Subject: [PATCH] strip quotes from calc internal representations This allows more calculations to be performed, but at what cost? * lisp/ob-calc.el (org-babel-execute:calc): Strip single quotes from calc internal representations. --- lisp/ob-calc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-calc.el b/lisp/ob-calc.el index f8ad7e337..8f94bcd4e 100644 --- a/lisp/ob-calc.el +++ b/lisp/ob-calc.el @@ -74,7 +74,7 @@ ((listp res) (error "calc error \"%s\" on input \"%s\"" (cadr res) line)) (t (replace-regexp-in-string - "'\\[" "[" + "'" "" (calc-eval (math-evaluate-expr ;; resolve user variables, calc built in