ob-exp: Fix removal of block results when exporting
commit0920e60c01432a7d5e5bd63ffcf224bdb1ebc4b8
authorNicolas Goaziou <n.goaziou@gmail.com>
Mon, 15 Oct 2012 20:29:30 +0000 (15 22:29 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Mon, 15 Oct 2012 20:29:30 +0000 (15 22:29 +0200)
treef969ba194e14971ba70b43e173ba2916af9a573c
parenta67ed0f59d42ffc688820571f64104aeb534722e
ob-exp: Fix removal of block results when exporting

* lisp/ob-exp.el (org-export-blocks-preprocess): Results of an
  evaluated code block can be inserted within the blank lines after
  the block.  Hence, if the block has to be removed, delete everything
  down to the first non-blank line after the end of block closing
  string, instead of removing everything down to the very end of the
  block.
* testing/lisp/test-ob-exp.el: Add test.
lisp/ob-exp.el
testing/lisp/test-ob-exp.el