From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug exporting code blocks to html Date: Tue, 23 Mar 2010 08:56:57 +0100 Message-ID: <8F994B21-14B3-4090-B4BC-22AF44D26DA9@gmail.com> References: <4B87C403.9020901@ifi.uio.no> <87pr2w2oa0.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ntyz9-0000bg-6h for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:11 -0400 Received: from [140.186.70.92] (port=56338 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntyz4-0000au-5t for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ntyz0-0005bW-1V for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:05 -0400 Received: from mail-fx0-f213.google.com ([209.85.220.213]:50247) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntyyz-0005bH-TF for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:02 -0400 Received: by fxm5 with SMTP id 5so2340562fxm.9 for ; Tue, 23 Mar 2010 00:57:00 -0700 (PDT) In-Reply-To: <87pr2w2oa0.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode On Mar 22, 2010, at 7:40 PM, Eric Schulte wrote: > Hi Martin, > > This appears to be a bug in org-mode at large, rather than anything > specifically babel related. > > notice that the following slight alteration of your new reference =20 > syntax > works as expected > > #+begin_src xml -n -r -l "ref:%s" > > ref:imp > > #+end_src > > Line no. [[(imp)]] is important! The docstring of org-coderef-label-format says (please note the final =20= paragraph): "The default coderef format. This format string will be used to search for coderef labels in literal examples (EXAMPLE and SRC blocks). The format can be overwritten in an individual literal example with the -f option, like #+BEGIN_SRC pascal +n -r -l \"((%s))\" ... #+END_SRC If you want to use this for HTML export, make sure that the format does not introduce special font-locking, and avoid the HTML special characters `<', `>', and `&'. The reason for this restriction is that the labels are searched for only after htmlize has done its job." - Carsten > > Best -- Eric > > "Martin G. Skj=E6veland" writes: > >> Hi, >> >> when I export >> >> -----------------------------------start >> * test >> #+begin_src xml -n -r -l "" >> >> >> >> #+end_src >> >> Line no. [[(imp)]] is important! >> -----------------------------------end >> >> to html I get (copying from my browser) >> >> -----------------------------------start >> 1 test >> >> 1: >> 2: >> 3: >> >> Line no. nil is important! >> -----------------------------------end >> >> I would like "" in line 2 of the block to be removed >> from output and the last line to read "Line no. 2 is important!". >> >> Thanks! >> >> Martin >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten