summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-06-17 15:02:31 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-06-17 15:02:31 (GMT)
commitd723d351b1ec59ad9db456f820d59a6e270f21a4 (patch)
tree4174efd197ffb98e336e31881c5c95fa3e09cbcc /src/mangen.cpp
parent6bcfa2ef74dee5be64110aa0b06b368d498c9a73 (diff)
downloadDoxygen-d723d351b1ec59ad9db456f820d59a6e270f21a4.zip
Doxygen-d723d351b1ec59ad9db456f820d59a6e270f21a4.tar.gz
Doxygen-d723d351b1ec59ad9db456f820d59a6e270f21a4.tar.bz2
Release-1.2.8-20010617
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index d4bd0aa..36d23e1 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -366,7 +366,7 @@ void ManGenerator::startMemberDoc(const char *,const char *,const char *,const c
}
void ManGenerator::startDoxyAnchor(const char *,const char *manName,
- const char *, const char *)
+ const char *, const char *name)
{
// something to be done?
if( !Config_getBool("MAN_LINKS") )
@@ -374,9 +374,16 @@ void ManGenerator::startDoxyAnchor(const char *,const char *manName,
return; // no
}
- // only create file when it doesn't exist
- QCString fileName=dir+"/"+buildFileName( manName );
+ // the name of the link file is derived from the name of the anchor:
+ // - truncate after an (optional) ::
+ QCString baseName = name;
+ int i=baseName.findRev(':');
+ if (i!=-1) baseName=baseName.right(baseName.length()-i-1);
+
+ // - remove dangerous characters and append suffix, then add dir prefix
+ QCString fileName=dir+"/"+buildFileName( baseName );
QFile linkfile( fileName );
+ // - only create file if it doesn't exist already
if ( !linkfile.open( IO_ReadOnly ) )
{
if ( linkfile.open( IO_WriteOnly ) )