From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?=22Martin_G=C3=BCrtler=22?= Subject: src blocks: code is /always/ exported Date: Thu, 29 Dec 2016 15:53:38 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMc5T-0002IV-S3 for emacs-orgmode@gnu.org; Thu, 29 Dec 2016 09:53:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMc5Q-0006aZ-RU for emacs-orgmode@gnu.org; Thu, 29 Dec 2016 09:53:47 -0500 Received: from mout.gmx.net ([212.227.15.18]:63788) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cMc5Q-0006ZI-I8 for emacs-orgmode@gnu.org; Thu, 29 Dec 2016 09:53:44 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org
Dear list,
I am exporting the following org mode file:
----8<--------------------
* doc
#+BEGIN_SRC shell :exports none
ls |wc
#+END_SRC
#+RESULTS:
: 20      20     199
----8<--------------------
I'd expect org mode to honour the :exports none header argument and
create a document that contains only the result.
However, the exported document contains  both, code and results.
This seems to be independent of the type of SRC and independent of the
export type (I tried dot and shell for odt, latex and beamer exports).
How can I get rid of the src code in the exported document?
Thanks for help,
Martin
------------------------------------------------------------------------
Emacs  : GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.4)
 of 2016-12-01, modified by Debian
Package: Org mode version 9.0.3 (9.0.3-elpaplus @ /home/guertler/.emacs.d/elpa/org-plus-contrib-20161224/)