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:53:45 +0200 Message-ID: <87li1u0vuu.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]:50809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWHFV-0004ZM-9J for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 22:54:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWHFK-0007QJ-5F for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 22:54:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:58902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWHFJ-0007Q7-VP for emacs-orgmode@gnu.org; Tue, 15 Oct 2013 22:54:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VWHFI-0005pR-Jc for emacs-orgmode@gnu.org; Wed, 16 Oct 2013 04:54:00 +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:54:00 +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:54:00 +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 PS: Omid writes: > When exporting to HTML (Org mode version 8.2.1 ELPA; GNU Emacs version > 24.3.1) I see the a strange behavior which can be reproduced with the > following minimal example: > > This exports correctly > #+BEGIN_SRC sh > ls > #+END_SRC > > - This also exports correctly > #+BEGIN_SRC sh > ls > #+END_SRC > > - 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? This exports correctly #+BEGIN_SRC sh ls #+END_SRC - This also exports correctly #+BEGIN_SRC sh ls #+END_SRC - This does NOT export correctly (code block is not detected) #+BEGIN_SRC sh ls #+END_SRC #+begin_src emacs-lisp :exports value (with-current-buffer (current-buffer) (org-export-as 'html)) #+end_src #+results:
ls
  • This also exports correctly
ls
  • This does NOT export correctly (code block is not detected)

    #+BEGIN_SRC sh

ls

#+END_SRC

with html export, the last case does look quite different from the other ones. -- cheers, Thorsten