sub preprocess (@) {
my %params=@_;
- if ($params{page} eq $params{destpage}) {
+ #if ($params{page} eq $params{destpage}) {
$params{levels}=1 unless exists $params{levels};
# It's too early to generate the toc here, so just record the
$tocpages{$params{destpage}}=\%params;
return "\n<div class=\"toc\"></div>\n";
- }
- else {
- # Don't generate toc in an inlined page, doesn't work
- # right.
- return "";
- }
+ #}
+ #else {
+ # # Don't generate toc in an inlined page, doesn't work
+ # # right.
+ # return "";
+ #}
}
sub format (@) {