From: wolf Date: Wed, 28 Jun 2000 08:06:05 +0000 (+0000) Subject: Only reference existing files (i.e. nodes with source). X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f945b211cf366d17ff316ac0dfde70b314c0d6d3;p=dealii-svn.git Only reference existing files (i.e. nodes with source). git-svn-id: https://svn.dealii.org/trunk@3094 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/kdoc/src/kdocHTMLutil.pm b/deal.II/contrib/kdoc/src/kdocHTMLutil.pm index 18c2d3a34b..2929ba331a 100644 --- a/deal.II/contrib/kdoc/src/kdocHTMLutil.pm +++ b/deal.II/contrib/kdoc/src/kdocHTMLutil.pm @@ -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