#583 Table of contents plugin does not nest numbering

Rendering
closed
5
2012-10-11
2007-10-05
No

I would expect something like this with different levels of headers:

Table of Contents

 1 fsdfdsfsdfsdfsdfsd
 2 fsdfdsfsdfsdfsdfsd
   2.1 fsdfdsfsdfsdfsdfsd
   2.2 fsdfdsfsdfsdfsdfsd
     2.2.1 fsdfdsfsdfsdfsdfsd
     2.2.2 fsdfdsfsdfsdfsdfsd
 3 fsdfdsfsdfsdfsdfsd
   3.1 fsdfdsfsdfsdfsdfsd
 4 fsdfdsfsdfsdfsdfsd

I get this :

  1. fsdfdsfsdfsdfsdfsd
  2. fsdfdsfsdfsdfsdfsd
  3. fsdfdsfsdfsdfsdfsd
  4. fsdfdsfsdfsdfsdfsd
  5. fsdfdsfsdfsdfsdfsd
  6. fsdfdsfsdfsdfsdfsd
  7. fsdfdsfsdfsdfsdfsd
  8. fsdfdsfsdfsdfsdfsd
  9. fsdfdsfsdfsdfsdfsd

(see attached file)

Discussion

  • Marc-Etienne Vargenau

    Logged In: YES
    user_id=1118700
    Originator: YES

    File Added: toc

     
  • Marc-Etienne Vargenau

     
  • Marc-Etienne Vargenau

    Logged In: YES
    user_id=1118700
    Originator: YES

    File Added: CreateToc.php

     
  • Marc-Etienne Vargenau

    Modified CreateToc.php file to get the desired behaviour

     
  • Marc-Etienne Vargenau

    Logged In: YES
    user_id=1118700
    Originator: YES

    I hacked the CreateToc.php 1.34 file to get the desired behaviour, but I am
    not sure it is done in the spirit of the initial code.

    I use unmumbered lists and add the numbers in HTML, so you have to hide
    the list chips with CSS.

    I you have an idea to make it cleaner it would be great. Nested HTML lists
    would be more elegant.

    Best regards,

    Marc-Etienne Vargenau

     
  • Marc-Etienne Vargenau

    Logged In: YES
    user_id=1118700
    Originator: YES

    Fixed in Subversion.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks