-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TOC contains empty entries #5
Comments
Hmmm, perhaps we could have a better replacement? How about |
Ok, I have produced a MWE. The bugs seems to appear when a "----" is inserted between the first section and the first subsection: the 4th level of section appears empty in the TOC when hitting "t"...
|
Sorry, wrong copy paste (one level more is needed):
|
docutils 0.12 ii docutils-common 0.12+dfsg-1 |
I see the problem, there's only support for 2 levels (TOC_MAX_LEVEL). It can be fixed. |
Ok. Thus, probably the TOC should ignore other levels... or support more levels... |
I guess we could change it to 6 (as We'd need to use a jinja macro to adequately support the variable nesting in |
Ok, I'll try to do it. |
I am working on a patch.
In what case do we need an entry in the toc if there is no specified level ? |
Hi,
I just tried python-darkslide and it seems that it contains a bug I have patched years ago in the landslide project but that I forgot to upstream.
When increasing the hierarchy of the document, entries with high level generate an empty entry in the TOC. The code involved is:
And the patch I did:
ptitmain@e9d4dbd
Is this patch ok ?
If yes, can darkslide include such a patch ?
Best regards.
The text was updated successfully, but these errors were encountered: