org-mode/etc
Gong Qijian 2b96fc9171 ob-core: Fix `org-babel--string-to-number'
* lisp/ob-core.el (org-babel--string-to-number): Fix the regular expression.
* testing/lisp/test-ob.el (test-ob/string-to-number): Test cases.

If people write the data in the form "0001"", it means that he wants to
treat it as a string.

TINYCHANGE

> #+name: TBL
> |   id | name   | age |
> |------|--------|-----|
> | 0001 | Apollo |  16 |
> | 0002 | Bmw    |  16 |
>
> #+BEGIN_SRC emacs-lisp :results value pp :var tbl=TBL
> (mapc 'print tbl)
> #+END_SRC
>
> #+RESULTS:
> : (("0001" "Apollo" 16)
> :  ("0002" "Bmw" 16))

TINYCHANGE
2018-10-13 23:22:05 +02:00
..
schema Clean up spacing to pass Emacs's pre-commit check 2017-06-22 13:31:04 -04:00
styles Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
Makefile move schema files to etc/ and modify makefile to install them into $(datadir) 2012-04-20 21:04:12 +02:00
ORG-NEWS ob-core: Fix `org-babel--string-to-number' 2018-10-13 23:22:05 +02:00