From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: 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:36:30 +0200 Message-ID: <86ioxof30h.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Iannis Zannos, Iannis Zannos wrote: > 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. The official solution (normally automatic[1] for Org code blocks) is to have a "," inserted before the "*"; it is removed automatically when exporting. Best regards, Seb [1] Sometimes, the "," is not automatically inserted for me, though, when TAB'ing. -- Sebastien Vauban