Home » Text » Text_Wiki » Bug #10015
static toc margin
Details
| Request #10015 | static toc margin |
|---|---|
| Submitted | 2007-02-03 01:40 UTC |
| From | mfn at fs-etit dot de |
| Status | Open |
| Package | Text_Wiki |
| PHP Version | 5.1.4 |
| OS | Windows/Linux |
| Roadmaps | (Not assigned) |
Comments
[2007-02-03 01:40 UTC] mfn at fs-etit dot de
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