TOC bugfix
Status: Beta
Brought to you by:
schulman
Page levels may decrease more than 1 at a time.
Example:
project file
------------------------
1.gtm 1 one
1.gtm 2 two
1.gtm 3 three
1.gtm 1 jumpback to 1
------------------------
1.gtm
--------
#toc
--------
Apply this.
1534,1535c1544,1552
< $_ .= (" " x ($plevel[$xx] * 2))
< .
"\')".$delim2.$delim1."__NEWLINE__".$delim2;
---
> #### Joe's Hack
> $localcount = $levelold - $plevel[$xx];
> while ($localcount--) {
> $_ .= (" " x ($plevel[$xx] * 2))
> . "\')".$delim2.$delim1."__NEWLINE__".$delim2;
> }
> ####
> # $_ .= (" " x ($plevel[$xx] * 2))
> # . "\')".$delim2.$delim1."__NEWLINE__".$delim2;