]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Escape whitespace in xrefs.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Feb 2000 14:42:25 +0000 (14:42 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Feb 2000 14:42:25 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@2500 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/glossary/extract.pl

index f950b5accfbafa7d3ac90fc16ff8f8942d81d541..1d996ad07af444da6800afc938780395f66e628d 100644 (file)
@@ -16,8 +16,16 @@ EOT
 while(<>)
 {
     s/\s+/ /g;
-    s/<<([^>]+)>>/<A HREF="#$1">$1<\/A>/g;
-    s/([^:]+):(.*)/<DT><A CLASS="name" NAME="$1">$1<\/A><\/DT>\n\t<DD>$2<\/DD>/;
+    while ( /<<([^>]+)>>/g ) {
+       $link_name = $1;
+       $link_name =~ s/\s/_/g;
+       s/<<([^>]+)>>/<A HREF="#$link_name">$1<\/A>/g;
+    }
+    while ( /([^:]+):(.*)/g ) {
+       $link_name = $1;
+       $link_name =~ s/\s/_/g;
+       s/([^:]+):(.*)/<DT><A NAME="$link_name" CLASS="name">$1<\/A><\/DT>\n\t<DD>$2<\/DD>/;
+    }
     print "\n$_\n";
 }
 

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.