]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Really make sure that there are no special characters inside anchors.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Mar 2006 17:35:19 +0000 (17:35 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Mar 2006 17:35:19 +0000 (17:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@12641 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/tutorial/chapter-2.step-by-step/program2html
deal.II/doc/tutorial/chapter-2.step-by-step/program2plain

index aa462d5920087429f1fbd06f7267caa044bbb6bc..e0789a3d8e527694afdea88130c5eda2b0b58971 100644 (file)
@@ -48,13 +48,6 @@ do {
        # comment // signs
        s!\s*//\s*(.*)\n!$1!;
 
-       # replace quotation marks by the appropriate HTML quotation marks
-       s!``!&#8220;!g;
-       s!''!&#8221;!g;
-
-        # replace double dashes in comments by &mdash;
-       s!--!&mdash;!g;
-
        # second, replace section headers, and generate addressable
        # anchor
        if ( /\@sect/ ) {
@@ -68,6 +61,13 @@ do {
           $_ = "\n<a name=\"$sect_name\"></a>" . $_;
        }
 
+       # replace quotation marks by the appropriate HTML quotation marks
+       s!``!&#8220;!g;
+       s!''!&#8221;!g;
+
+        # replace double dashes in comments by &mdash;
+       s!--!&mdash;!g;
+
        # then replace references to other example programs automatically:
        s!(step-\d+)!<a href="\1.html" target="body">\1</a>!g;
 
index 80dff7ac23a286e3023f039c37e64f949af02c24..0a1a0599443d54e7dee131fea3a65b43bc13e413 100644 (file)
@@ -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!``!&#8220;!g;
-          s!''!&#8221;!g;
-
-           # replace double dashes in comments by &mdash;
-          s!--!&mdash;!g;
-
           m!\@sect(\d)\{(.*)\}\s*$!;
           $sect_name = $2;
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.