From: wolf Date: Thu, 16 Mar 2006 17:35:19 +0000 (+0000) Subject: Really make sure that there are no special characters inside anchors. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a60b39c21de065233888573226b66272af460ec;p=dealii-svn.git Really make sure that there are no special characters inside anchors. git-svn-id: https://svn.dealii.org/trunk@12641 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/program2html b/deal.II/doc/tutorial/chapter-2.step-by-step/program2html index aa462d5920..e0789a3d8e 100644 --- a/deal.II/doc/tutorial/chapter-2.step-by-step/program2html +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/program2html @@ -48,13 +48,6 @@ do { # comment // signs s!\s*//\s*(.*)\n!$1!; - # replace quotation marks by the appropriate HTML quotation marks - s!``!“!g; - s!''!”!g; - - # replace double dashes in comments by — - s!--!—!g; - # second, replace section headers, and generate addressable # anchor if ( /\@sect/ ) { @@ -68,6 +61,13 @@ do { $_ = "\n" . $_; } + # replace quotation marks by the appropriate HTML quotation marks + s!``!“!g; + s!''!”!g; + + # replace double dashes in comments by — + s!--!—!g; + # then replace references to other example programs automatically: s!(step-\d+)!\1!g; diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/program2plain b/deal.II/doc/tutorial/chapter-2.step-by-step/program2plain index 80dff7ac23..0a1a059944 100644 --- a/deal.II/doc/tutorial/chapter-2.step-by-step/program2plain +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/program2plain @@ -18,13 +18,6 @@ while (<>) { # second, replace section headers, and generate addressable # anchor if ( /\@sect/ ) { - # replace quotation marks by the appropriate HTML quotation marks - s!``!“!g; - s!''!”!g; - - # replace double dashes in comments by — - s!--!—!g; - m!\@sect(\d)\{(.*)\}\s*$!; $sect_name = $2;