]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use proper quotation marks. Fix one little problem with a misreferenced
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 4 Apr 2005 19:25:29 +0000 (19:25 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 4 Apr 2005 19:25:29 +0000 (19:25 +0000)
variable that happened to work by chance before.

git-svn-id: https://svn.dealii.org/trunk@10348 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 75c80af247983fe01bd5e26371f050ced72067d2..73ddb8f7d1b062975fe9db0967eab901ea704cdb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1999, 2000, 2001, 2002 by Wolfgang Bangerth, University of Heidelberg
+# Copyright (C) 1999, 2000, 2001, 2002, 2005 by Wolfgang Bangerth, University of Heidelberg
 
 print "<a name=\"CommProg\"></a>\n";
 print "<h1> The commented program</h1>\n";
@@ -57,11 +57,15 @@ do {
           $_ = "\n<a name=\"$sect_name\"></a>" . $_;
        }
 
+       # replace quotation marks by the appropriate HTML quotation marks
+       s!``!&#8220;!g;
+       s!''!&#8221;!g;
+
        # finally print this line
        print $_, "\n";
 
        # if empty line, introduce paragraph break
-       print "</p>\n\n<p>" if  $1 =~ m!^\s*$!;
+       print "</p>\n\n<p>" if  $_ =~ m!^\s*$!;
     }
     else
     {

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.