From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [BUG] HTML exporting numbered literal examples Date: Thu, 16 Jul 2009 21:43:42 +0200 Message-ID: <87r5wg8lch.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRWry-0004RF-MZ for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 15:43:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRWru-0004Oh-SE for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 15:43:54 -0400 Received: from [199.232.76.173] (port=46955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRWru-0004Oc-M9 for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 15:43:50 -0400 Received: from mx20.gnu.org ([199.232.41.8]:2232) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MRWru-00061c-1W for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 15:43:50 -0400 Received: from rv-out-0708.google.com ([209.85.198.242]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRWrt-0003Za-4y for emacs-orgmode@gnu.org; Thu, 16 Jul 2009 15:43:49 -0400 Received: by rv-out-0708.google.com with SMTP id f25so118629rvb.6 for ; Thu, 16 Jul 2009 12:43:48 -0700 (PDT) In-Reply-To: (Ulf Stegemann's message of "Thu, 09 Jul 2009 12:44:46 +0200") 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: Ulf Stegemann Cc: emacs-orgmode@gnu.org Ulf Stegemann writes: > With latest CVS Emacs and Git Org mode exporting literal examples > (example/src) with the `-n' switch results in numbering starting on line > *2* of the example in the resulting HTML file (LaTeX seems to be okay). > > The example in the manual ... > > --8<--------------------------snip-------------------------->8--- > #+BEGIN_SRC emacs-lisp -n -r > (save-excursion (ref:sc) > (goto-char (point-min)) (ref:jump) > #+END_SRC > In line [[(sc)]] we remember the current positon. [[(jump)][Line (jump)]] > jumps to point-min. > --8<--------------------------snap-------------------------->8--- > > ... (which is BTW not working as the manual misses the underscore in > `#+END_SRC') results (visually) in Fixed in the manual. > --8<--------------------------snip-------------------------->8--- > (save-excursion (ref:sc) > 1: (goto-char (point-min)) > --8<--------------------------snap-------------------------->8--- > > with reference `sc' broken. > > Can anyone reproduce this? Yes. And I just pushed fix for that. > And while we are at it: Would it be feasible to have `-r' in literal > examples even without `-n', thus removing the label in the source code > block even if the example is not numbered. I have no concrete case where > this may be necessary but I think that usually labels shouldn't be > displayed in /literal/ examples. For this I have no idea - it looks like we can wait for "concrete examples" :) -- Bastien