Fix error prone babel table output format detection
commit7d6cc7f0bf128e3a713a1c50f2c39f0321955fbb
authorIan Kelling <ian@iankelling.org>
Thu, 1 May 2014 04:56:52 +0000 (30 21:56 -0700)
committerBastien Guerry <bzg@altern.org>
Wed, 21 May 2014 13:04:23 +0000 (21 15:04 +0200)
tree59e5f3f7709246ef05ce5c49e96a21d5d3144b47
parentda5128404a0629980edd0694373499a79a65fdc6
Fix error prone babel table output format detection

* ob-core.el (org-babel-insert-result): Test all list elements against
listp and (eq element 'hline) instead of checking just the first.

org-babel table output uses different formatting for a list of lists,
but detects it incorrectly causing an error. An example of a block
causing an error is an emacs lisp source block containing just 1 line:
'((1) 2)
lisp/ob-core.el