ob-core: Fix the #+END_ directive from the :wrap param
commit90de5ee463d9f378504b347bf9ba399bd152a302
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 19 Dec 2012 20:16:57 +0000 (19 21:16 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 19 Dec 2012 20:16:57 +0000 (19 21:16 +0100)
tree523bbaa2ee723b72428c64421413430fd75bc48e
parent27f06c104ea7362938b969d55c8d02dd6fc51478
ob-core: Fix the #+END_ directive from the :wrap param

* lisp/ob.el: Only use the :wrap argument up to the first space when creating
  the #+END_ directive.

Using an option like ":wrap SRC fundamental" was generating and end marker of
"#+END_SRC fundamental", which caused the new exporter to fail to handle to
block properly.

Patch from Michael Gauland.
lisp/ob-core.el