Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.3

Request #12567 XHTML rendering of Toc using nested <ul>s
Submitted: 2007-12-02 10:09 UTC
From: ntd Assigned: justinpatrin
Status: Feedback Package: Text_Wiki (version 1.2.0)
PHP Version: Irrelevant OS: All
Roadmaps: 1.3.0    
Subscription  


 [2007-12-02 10:09 UTC] ntd (Nicola Fontana)
Description: ------------ This patch adds a 'use_ul' configuration flag that, if enabled, renders the Toc as a series of nested
    s. This allows more customization control, such as setting the indentation, rendering items on a per-level base or adding JavaScript stuff to show/hide sublevels in complex tocs. If 'use_ul' is false (default), it follows the old behaviour. Test script: --------------- [[toc]] ++ Header 2 +++ Header 3 ++++ Header 4 ++ Header 2 +++ Header 3 Expected result: ----------------

Comments

 [2010-03-08 18:45 UTC] doconnor (Daniel O'Connor)
1. Any chance of this patch without the 'static' behaviour? 2. Can you provide any Unit test coverage?
 [2012-01-02 06:57 UTC] doconnor (Daniel O'Connor)
clockwerx@clockwerx-desktop:~/pear-svn-git/Text_Wiki$ patch -p1 < patch- download.php\?id\=12567\&patch\=use_ul\&revision\=1196591285 patching file Text/Wiki/Render/Xhtml/Toc.php Hunk #1 FAILED at 30. Hunk #2 succeeded at 51 (offset 1 line). Hunk #3 FAILED at 84. 2 out of 3 hunks FAILED -- saving rejects to file Text/Wiki/Render/Xhtml/Toc.php.rej
 [2012-01-02 06:59 UTC] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Feedback
Need a new patch