From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Literal Examples are malformed in exports (to html/tex) [8.0.3 (release_8.0.3-165-g60ca9e @ /home/quazimodo/.emacs.d/vendor/org-mode/lisp/)] Date: Wed, 29 May 2013 21:10:04 +0200 Message-ID: <8761y1hab7.fsf@gmail.com> References: <87d2s9629y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhll8-0008M2-K3 for emacs-orgmode@gnu.org; Wed, 29 May 2013 15:10:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uhll3-0004qX-CY for emacs-orgmode@gnu.org; Wed, 29 May 2013 15:10:06 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:42288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uhll3-0004qE-7U for emacs-orgmode@gnu.org; Wed, 29 May 2013 15:10:01 -0400 Received: by mail-we0-f179.google.com with SMTP id m46so6585714wev.24 for ; Wed, 29 May 2013 12:10:00 -0700 (PDT) In-Reply-To: <87d2s9629y.fsf@gmail.com> (S. S.'s message of "Thu, 30 May 2013 04:59:05 +1000") 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: "S.S" Cc: emacs-orgmode@gnu.org Hello, super.quazimodo@gmail.com (S.S) writes: > I add a literal example like > > #+BEGIN_SRC > (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) > #+END_SRC You need to provide a language for src blocks. > and > > #+BEGIN_EXAMPLE > (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) > #+END_EXAMPLE > > to an org file in various places. > > Export with (org-html-export-to-html) and (org-latex-export-to-latex) > produces inconsistent and malformed example blocks. Some of these blocks > produce >

> #+BEGINEXAMPLE > (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) >

> > Others produce > >

> (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) >

> > and > > \#+BEGIN$_{\text{EXAMPLE}}$ > (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) > \#+END$_{\text{EXAMPLE}}$ It means the example blocks are not recognized as such, for some reason. I cannot reproduce it, so I'd need a bit more context around your wrong blocks. Could you provide an ECM? > I add the following before an example block > #+ATTR_HTML: :textarea t :width 40 > > and it creates > >
>

> (defun org-xor (a b) > "Exclusive or." > (if a (not b) b)) >

I cannot reproduce it either, but it seems related to the first problem. Regards, -- Nicolas Goaziou