From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Bug with section numbers due to EXAMPLE block Date: Wed, 3 Mar 2010 14:36:54 +0100 Message-ID: <59E70D8C-B1F8-40FF-8A0C-143EB44FC9BE@gmail.com> References: <87zl2s3k3j.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; 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 1Nmol1-0004Jx-2v for emacs-orgmode@gnu.org; Wed, 03 Mar 2010 08:36:59 -0500 Received: from [140.186.70.92] (port=47046 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nmokz-0004JL-Vv for emacs-orgmode@gnu.org; Wed, 03 Mar 2010 08:36:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nmokz-0005Rj-F5 for emacs-orgmode@gnu.org; Wed, 03 Mar 2010 08:36:57 -0500 Received: from mail-ew0-f222.google.com ([209.85.219.222]:35226) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nmokz-0005Re-Ag for emacs-orgmode@gnu.org; Wed, 03 Mar 2010 08:36:57 -0500 Received: by ewy22 with SMTP id 22so1047086ewy.26 for ; Wed, 03 Mar 2010 05:36:56 -0800 (PST) In-Reply-To: <87zl2s3k3j.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: Daniel Clemente Cc: org-mode Mailinglist Thanks Daniel, I have fixed this bug. - Carsten On Mar 1, 2010, at 2:29 AM, Daniel Clemente wrote: > > Hi, I found an HTML export bug with org-mode 6.34c-140-g44c8 and =20 > older. I used: > > -------------------------------------------------------- > * only one section > #+BEGIN_EXAMPLE: > > We need: > ,* pears > ,* lettuce > ,* watermelons > > Very important! > #+END_EXAMPLE: > -------------------------------------------------------- > > And the outputed table of contents had this code: > > -------------------------------------------------------- > > -------------------------------------------------------- > > This is wrong because the asterisks inside the example don't =20 > represent headers. There should be only one header. > > It does not happen with QUOTE or VERSE or SRC or CENTER! Only with =20= > EXAMPLE! > > > I found this related code in org-export-replace-src-segments-and-=20 > examples: > > #+BEGIN_SRC lisp > ;; Free up the protected lines > (goto-char (point-min)) > (while (re-search-forward "^," nil t) > (if (or (equal lang "org") > (save-match-data > (looking-at "\\([*#]\\|[ \t]*#\\+\\)"))) > (replace-match "")) > (end-of-line 1)) > #+END_SRC > > (looking-at "\\([*#]\\|[ \t]*#\\+\\)") is true and therefore the , =20 > is removed and the asterisks are free. > > Maybe that block should be marked as =84this is not org syntax=93, or = =20 > the section numbers should be computed before evaluating example =20 > blocks. > > > Greetings > Daniel > > > _______________________________________________ > 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