From: wolf Date: Thu, 9 Feb 2006 19:27:12 +0000 (+0000) Subject: Allow section headers higher than 4. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34610eff66d07c07c522eecc334cafb23938106a;p=dealii-svn.git Allow section headers higher than 4. git-svn-id: https://svn.dealii.org/trunk@12284 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc b/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc index 41dcec362f..99bee597bb 100644 --- a/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc @@ -13,18 +13,22 @@ while (<>) { # replace double dashes in comments by — $text =~ s!--!—!g; - # only allow header levels 3 and 4, since higher ones are + # only allow header levels 3 through 6, since higher ones are # reserved for top-level document headers - if (! ($newlevel =~ /[34]/)) { - print STDERR "Only header levels 3 and 4 are allowed.\n"; + if (! ($newlevel =~ /[3456]/)) { + print STDERR "Only header levels 3 through 6 are allowed.\n"; print STDERR "You had $newlevel.\n"; die; } if ($newlevel > $level) { - print " \n"; + } } $reftext = $text; @@ -35,7 +39,6 @@ while (<>) { } } -if ( $level == 4) { +for (; $level>=3; --$level) { print " \n"; } -print " \n";