ob-exp: Fix code execution in some corner cases
commit3f9a6916aa4ede742de70f7ee657bf08a86b0e89
authorNicolas Goaziou <n.goaziou@gmail.com>
Sat, 18 Jan 2014 14:25:01 +0000 (18 15:25 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sat, 18 Jan 2014 14:32:41 +0000 (18 15:32 +0100)
tree8910c32fe987feea85d72ab128f68e47e1d20ba4
parent7b2af7cb60746e7b8b91d60d7d6fec208611e61b
ob-exp: Fix code execution in some corner cases

* lisp/ob-exp.el (org-babel-exp-process-buffer): Make processing more
  robust when results are inserted before source block or when source
  block is followed by multiple blank lines.
* testing/lisp/test-ob-exp.el (ob-export/export-with-results-before-block):
  Add test.
lisp/ob-exp.el
testing/lisp/test-ob-exp.el