From 34610eff66d07c07c522eecc334cafb23938106a Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 9 Feb 2006 19:27:12 +0000 Subject: [PATCH] Allow section headers higher than 4. git-svn-id: https://svn.dealii.org/trunk@12284 0785d39b-7218-0410-832d-ea1e28bc413d --- .../tutorial/chapter-2.step-by-step/program2toc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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"; -- 2.39.5