PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #10015

static toc margin

Details

Request #10015static toc margin
Submitted2007-02-03 01:40 UTC
Frommfn at fs-etit dot de
StatusOpen
PackageText_Wiki
PHP Version5.1.4
OSWindows/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