ob-exp: Fix switches handling upon exporting
commit63a2a403a92f77ddb2035996a41a5fd77bed61af
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 29 Jan 2014 08:01:43 +0000 (29 09:01 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 29 Jan 2014 08:01:43 +0000 (29 09:01 +0100)
treeb5017c78daac85361ad3198c395edf3d4f5e8545
parentb298a47eb1c4c4e2fcb3984e5facb33f46c70167
ob-exp: Fix switches handling upon exporting

* lisp/ob-exp.el (org-babel-exp-code-template): Include switches in
  template.
(org-babel-exp-code): Provide %switches placeholder.
* testing/lisp/test-ob-exp.el (ob-export/export-src-block-with-switches):
  New test.
(ob-export/export-src-block-with-flags): Fix indentation.

This fixes dde6af3a6230b37aabfb4f75c2dee89433958375.  The confusion
came from the fact that "flags" placeholder had two meanings:
the :flags value and the block's switches (e.g., "-n").  This patch
separates these two meanings.
lisp/ob-exp.el
testing/lisp/test-ob-exp.el