Skip to content

Commit

Permalink
Tidied classes for indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Oct 21, 2024
1 parent 9097de9 commit 964cd4e
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Tools/AGSHtml.m
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,8 @@ - (void) outputIndex: (NSString*)type
* so that CSS can be used to style it.
*/
[buf appendString: indent];
[buf appendFormat: @"<div class=\"%@_%@_index\">\n", scope, type];
[buf appendFormat: @"<p class=\"%@_%@_index\">\n", scope, type];
[self incIndent];
if ([@"cssNavigation" isEqualToString: style])
{
[buf appendString: indent];
[buf appendString: @"<p>\n"];
[self incIndent];
}

if ([type isEqual: @"title"] == YES)
{
Expand Down Expand Up @@ -670,7 +664,8 @@ - (void) outputIndex: (NSString*)type
[buf appendString: indent];
if (!isBareStyle)
{
[buf appendFormat: @"<b>%@</b>\n", title];
[buf appendFormat:
@"<h3 class=\"index-section-header\">%@</h3>\n", title];
}
[buf appendString: indent];
if (!isBareStyle)
Expand Down Expand Up @@ -768,15 +763,9 @@ - (void) outputIndex: (NSString*)type
[buf appendString: @"\n"];
}

if ([@"cssNavigation" isEqualToString: style])
{
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</p>\n"];
}
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; // nav-bar section
[buf appendString: @"</p>\n"];
}

- (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
Expand Down

0 comments on commit 964cd4e

Please sign in to comment.