From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Org mode export to HTML not working correctly with code blocks if block is after an item (-) and its delimiters are indented Date: Wed, 16 Oct 2013 04:41:06 +0200 Message-ID: <87txgi0wfx.fsf@gmail.com> References: <525DE996.2000408@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWH3F-0001ok-OI for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 22:41:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWH38-0003QI-DZ for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 22:41:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:33685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWH38-0003Q6-6d for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 22:41:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VWH36-0008AC-5i for emacs-orgmode@gnu.org; Wed, 16 Oct 2013 04:41:24 +0200 Received: from e178191170.adsl.alicedsl.de ([85.178.191.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Oct 2013 04:41:24 +0200 Received: from tjolitz by e178191170.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Oct 2013 04:41:24 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Omid writes: > - This does NOT export correctly (code block is not detected) > #+BEGIN_SRC sh > ls > #+END_SRC > > Is there any way around this behavior without removing the indentation > for the code block delimiters? I think the 'official'regexp to detect a src-block starts like this ,---------------------------------- | "^\\([ \t]*\\)#\\+begin_src [...] `---------------------------------- so I would guess that this should work, and its a bug if it doesn't. Inside a list like this - First item #+begin_src emacs-lisp :exports both (+ 3 4) #+end_src - Second Item Some text it should work too, lets test: #+begin_src emacs-lisp :exports value (with-current-buffer (current-buffer) (org-export-as 'ascii)) #+end_src ,----------------------------------------------------------------------- | #+results: | _________________ | | 427 | | Thorsten Jolitz | _________________ | | | | | | 1 --text follows this line-- | ============================ | | Omid writes: | | > - This does NOT export correctly (code block is not detected) | > #+BEGIN_SRC sh ls #+END_SRC Is there any way around this behavior | > without removing the indentation for the code block delimiters? | | I think the 'official'regexp to detect a src-block starts like this | | ,---------------------------------- | "^\\([ \t]*\\)#\\+begin_src [...] | `---------------------------------- | | so I would guess that this should work, and its a bug if it doesn't. | | Inside a list like like this | | - First item | | ,---- | | (+ 3 4) | `---- | | ,---- | | 7 | `---- | | | - Second Item | | Some text | | it should work too, lets test: | | ,---- | | (with-current-buffer | | (current-buffer) | | (org-export-as 'ascii)) | `---- | | | -- cheers, Thorsten `----------------------------------------------------------------------- looks as if it works for me ... -- cheers, Thorsten