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

Request #10015 static toc margin
Submitted: 2007-02-03 01:40 UTC
From: mfn at fs-etit dot de Assigned:
Status: Open Package: Text_Wiki (version 1.2.0RC1)
PHP Version: 5.1.4 OS: Windows/Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-02-03 01:40 UTC] mfn at fs-etit dot de (mfn)
Description: ------------ In PEAR/Text/Wiki/Render/Xhtml/Toc.php the margin for the headings is defined static Line 37 var $min = 2; When you add 'min' => 2 to the conf Array its possible to change its value when needed. Delete line 37. After line 55 insert: $min = $this->getConf('min'); Line 104 has to be changed to: $pad = ($level - $min); Test script: --------------- Modified Toc.php : http://phpfi.com/199813

Comments