[PATCH] Toc generator problem with large document

14 views
Skip to first unread message

Sebastien Helleu

unread,
Dec 17, 2011, 9:15:25 AM12/17/11
to asci...@googlegroups.com
Hi,

I noticed that since version 8.6.6, I have duplicated entries in TOC
of large document. There's an example in WeeChat API doc here:
http://weechat.org/files/doc/devel/weechat_plugin_api.en.html
(tested with Firefox 8 and 9, other browsers may not have same
problem).

I noticed that problem was introduced by a patch, which was supposed
to fix... this same problem!
The patch was this one:
http://code.google.com/p/asciidoc/source/detail?r=2a21e2f6c06f7d4ffd87ec164425e6348e4cc826

In fact for my document, version without patch was just working fine.
So I made a compromise between both, and use toLowerCase() in
javascript to make case-insensitive comparison.
With attached patch, it works for my document. I hope it will fix
problem for everyone (I didn't test on other documents).

--
Cordialement / Best regards
Sébastien.

asciidoc_toc_long_doc.patch

Stuart Rackham

unread,
Dec 18, 2011, 6:21:28 PM12/18/11
to asci...@googlegroups.com
Thanks for the patch Sebastien. I've committed it to the trunk:

http://code.google.com/p/asciidoc/source/detail?r=40cb49396d67c134539d897fab762ea81c455b8b

Cheers, Stuart

Reply all
Reply to author
Forward
0 new messages