From mboxrd@z Thu Jan 1 00:00:00 1970 From: Iannis Zannos Subject: org-html-publish-to-html fails to recognize BEGIN_EXAMPLE/END_EXAMPLE blocks when exporting an example containing org-mode heading Date: Thu, 26 Sep 2013 09:30:20 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b603ca00f457304e74381ac Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP55k-0007S2-K6 for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 02:30:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP55i-0003fL-Vo for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 02:30:24 -0400 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:51682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP55i-0003f5-Nx for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 02:30:22 -0400 Received: by mail-ee0-f44.google.com with SMTP id b47so288622eek.31 for ; Wed, 25 Sep 2013 23:30:21 -0700 (PDT) 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 --047d7b603ca00f457304e74381ac Content-Type: text/plain; charset=ISO-8859-1 Hello, when trying to export as html an example which contains org-mode headings, the example is not "quoted" in mono-space as it should be. Example: *1. Failing example: * -------------------------------- This is a test of publishing an example which contains org mode code in html: #+BEGIN_EXAMPLE * test #+END_EXAMPLE End of test. -------------------------------- *2. Workaround: * This works as expected, but only because the * headline is indented by 1 character: -------------------------------- This is a test of publishing an example which contains org mode code in html: #+BEGIN_EXAMPLE * test #+END_EXAMPLE End of test. -------------------------------- I used (meta-x) org-html-export-to-html to do the export. Same happens with org-publish. I am running following emacs version: GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org on MacOS X 10.8.5 with org-mode version: Org-mode version 8.0.7 (8.0.7-6-g13cb28-elpa @ /Users/iani2/.emacs.d/elpa/org-20130812/) Is this a bug? Any suggestions? Iannis Zannos --047d7b603ca00f457304e74381ac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Hello,=A0

when trying to export as html an example which contains org-mode headin= gs, the example is not "quoted" in mono-space as it should be. Ex= ample:=A0

1. Failing example:=A0

--------------------------------

This is a test of publishing an example which contains or= g mode code in html:=A0

#+BEGIN_EXAMPLE
* test
#+END_EXAMPL= E

End of test.=A0

--------------------------------

2. Workaround:=A0

This works as= expected, but only because the * headline is indented by 1 character:=A0

-----------------------------= ---

This is a test of publishing an example which cont= ains org mode code in html:=A0

#+BEGIN_EXAMPLE
=A0* test
#+END_EXAMPLE

End of te= st.=A0

--------------------------------
=
I used (meta-x) org-html-export-to-html to do the expo= rt.=A0
Same happens with org-publish.=A0
I am running following emacs version:=A0
G= NU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-1= 3 on bob.porkrind.org

on MacOS X 10.8.5

with org-mode version:=A0
Org-mode version 8.0.7 (8.0.7-6-= g13cb28-elpa @ /Users/iani2/.emacs.d/elpa/org-20130812/)=A0

Is this a bug? Any suggestions?=A0
Iannis Zannos

--047d7b603ca00f457304e74381ac--