diff options
author | ikelley <ikelley@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-07-15 08:50:17 +0000 |
---|---|---|
committer | ikelley <ikelley@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-07-15 08:50:17 +0000 |
commit | fc4c9a00703ac5035f42b028e5974d44aa5c3699 (patch) | |
tree | 2311a4699096fc22f572f423e4fb152777a121fa /lib/sbin/ThornGuide.pl | |
parent | 005484f57a828156489bfca710bf469b5a5f319c (diff) |
setting toc depth to 1
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2930 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/ThornGuide.pl')
-rw-r--r-- | lib/sbin/ThornGuide.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sbin/ThornGuide.pl b/lib/sbin/ThornGuide.pl index b622d447..34bedb86 100644 --- a/lib/sbin/ThornGuide.pl +++ b/lib/sbin/ThornGuide.pl @@ -183,6 +183,7 @@ sub Read_New_Thorn_Doc open (DOC, "<$pathandfile") || print STDERR "\nCould not find documentation in $path"; + while (<DOC>) # loop through thorn doc. { if (/\\title\{(.*?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?(?:.*?\{.*?[^\{].*?\}.*?)?.*?)\}/) { $title = $1; if ($title !~ /\w/) { close DOC; return 0;} } @@ -623,6 +624,7 @@ print OUT <<EOC; % Table of contents \\pagenumbering{roman} +\\setcounter{tocdepth}{1} \\tableofcontents %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |