]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Only reference existing files (i.e. nodes with source).
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Jun 2000 08:06:05 +0000 (08:06 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Jun 2000 08:06:05 +0000 (08:06 +0000)
git-svn-id: https://svn.dealii.org/trunk@3094 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/kdoc/src/kdocHTMLutil.pm

index 18c2d3a34b3be9b1d3a4576add7640acb22f6ac0..2929ba331a0b0e57f60b8c2fadb3948190479e4d 100644 (file)
@@ -553,7 +553,15 @@ sub wordRef
 
        warn fullName( $ref ). " hasn't a reference." unless defined $ref->{Ref};
 
-       return hyper( $ref->{Ref}, $str ) unless !defined $ref->{Ref};
+       # return a hyperlinked reference to $str if that has a node with some 
+        # source. if it has no source, then it is most probably a forward
+       # declaration, and in any case we don't have a file to which we can link
+       if (defined $ref->{Ref} && defined $ref->{Source} ) {
+           return hyper( $ref->{Ref}, $str );
+       }
+       else {
+           return esc($str);
+       }
 }
 
 =head2 textRef

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.