浏览代码

don't interpret single "-" as a number

* lisp/ob-core.el (org-babel-number-p): Don't interpret single "-" as a
  number.
Eric Schulte 12 年之前
父节点
当前提交
df0c8a3bc4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lisp/ob-core.el

+ 1 - 0
lisp/ob-core.el

@@ -2521,6 +2521,7 @@ appropriate."
 (defun org-babel-number-p (string)
   "If STRING represents a number return its value."
   (if (and (string-match "^-?[0-9]*\\.?[0-9]*$" string)
+	   (string-match "[0-9]+" string)
            (= (length (substring string (match-beginning 0)
 				 (match-end 0)))
 	      (length string)))