From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Bug: Numbering in TOC broken for HTML export [7.5 (release_7.5.132.gf04d4)] Date: Tue, 29 Mar 2011 00:05:30 -0400 Message-ID: <871v1q8tbp.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=51490 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4QBa-0000KX-W1 for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 00:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4QBZ-0001My-Ht for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 00:05:42 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:13789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4QBZ-0001MQ-G8 for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 00:05:41 -0400 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: emacs-orgmode@gnu.org, Lawrence Mitchell Cc: Bastien Hi Lawrence, Numbering of the Table of Contents is broken in master for HTML export. git bisect identifies the following commit as the cause of this regression. --8<---------------cut here---------------start------------->8--- 9f57b8e85d185fbf3f9788fd4099709d512dedd1 is the first bad commit commit 9f57b8e85d185fbf3f9788fd4099709d512dedd1 Author: Lawrence Mitchell Date: Wed Mar 23 14:38:18 2011 +0000 Allow mixed export of numbered and unnumbered sections in HTML * lisp/org-html.el (org-export-as-html): Get local value of org-export-with-section-numbers from the buffer's plist. Deal specially with the case the resulting value is an integer. (org-html-level-start): New optional argument of the option plist used instead of `org-export-with-section-numbers'. Also deal specially with the case that the value is an integer. When `org-export-with-section-numbers' (or the buffer-local :section-numbers option) is an integer, we now export the first NUM levels of headings with numbers and lower-level headings without. :040000 040000 d3f89726820ce5f8c97d6bc21f7c86c46575c203 4e0888ace3fdcafc3385a173d86d9d893d646730 M lisp --8<---------------cut here---------------end--------------->8--- I noticed this while updating http://doc.norang.ca/org-mode.html and my TOC turned into a plain unnumbered list. Reverting this commit fixes the problem for me. Emacs : GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Package: Org-mode version 7.5 (release_7.5.132.gf04d4) The following org file should have the headings numbered and include a numbered table of contents. --8<---------------cut here---------------start------------->8--- #+TITLE: Numbered TOC test for HTML export #+OPTIONS: H:3 num:t toc:t * Section One This is the text for section one. * Section Two This is the text for section two. --8<---------------cut here---------------end--------------->8--- Regards, -- Bernt