emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug: Numbering in TOC broken for HTML export [7.5 (release_7.5.132.g


From: Bernt Hansen
Subject: [O] Bug: Numbering in TOC broken for HTML export [7.5 (release_7.5.132.gf04d4)]
Date: Tue, 29 Mar 2011 00:05:30 -0400
User-agent: Gnus/5.110015 (No Gnus v0.15) Emacs/23.2 (gnu/linux)

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 <address@hidden>
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]