diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index 08f1d94c7..5156b4236 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -1458,6 +1458,15 @@ static NSMutableSet *textNodes = nil; else { s = [self makeLink: r ofType: type isRef: YES]; + /** + * As a special case, if we have a reference to a function, + * and we can't find it, we check to see if there is actually + * a macro of that name and refer to that instead. + */ + if (s == nil && [type isEqual: @"function"] == YES) + { + s = [self makeLink: r ofType: @"macro" isRef: YES]; + } } if (s == nil) { diff --git a/Tools/AGSOutput.m b/Tools/AGSOutput.m index 507e8a157..29505fe85 100644 --- a/Tools/AGSOutput.m +++ b/Tools/AGSOutput.m @@ -2217,6 +2217,7 @@ static BOOL snuggleStart(NSString *t) [str appendString: @"\">\n"]; [str appendString: @" \n"]; [str appendString: @" \n"]; + [str appendString: @" \n"]; [str appendString: @" \n"]; [str appendString: @"\n"]; }