From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org, Lawrence Mitchell <wence@gmx.li>
Cc: Bastien <bastienguerry@googlemail.com>
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 [thread overview]
Message-ID: <871v1q8tbp.fsf@norang.ca> (raw)
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 <wence@gmx.li>
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
next reply other threads:[~2011-03-29 4:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 4:05 Bernt Hansen [this message]
2011-03-29 8:30 ` [PATCH] org-html: Fix logic for export of section numbers Lawrence Mitchell
2011-03-29 13:07 ` Bernt Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871v1q8tbp.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=bastienguerry@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=wence@gmx.li \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).