Skip to content

Commit

Permalink
output body divs, fix indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
rmottola committed Sep 23, 2024
1 parent a2c9bfa commit fc23434
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions Tools/AGSHtml.m
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ - (void) outputIndex: (NSString*)type
*/
[buf appendString: indent];
[buf appendFormat: @"<div class=\"%@_%@_index\">\n", scope, type];
[self incIndent];

if ([type isEqual: @"title"] == YES)
{
Expand Down Expand Up @@ -750,8 +751,10 @@ - (void) outputIndex: (NSString*)type
}
[buf appendString: @"\n"];
}

[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"];
[buf appendString: @"</div>\n"]; // nav-bar section
}

- (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
Expand Down Expand Up @@ -801,17 +804,23 @@ - (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
}

[self decIndent];
[buf appendString: indent];

[buf appendString: indent];
if (navcss)
{
[buf appendString: @"</div>\n"];
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; //content-pane-body
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; //content-pane
}
if (isContentsDoc)
{
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"];
}
[buf appendString: indent];
[buf appendString: @"</body>\n"];
}
else if ([name isEqual: @"br"] == YES)
Expand Down Expand Up @@ -1320,14 +1329,22 @@ - (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
{
[buf appendString: indent];
[buf appendString: @"<div class=\"ToC\">\n"];
[self incIndent];
}

if (navcss)
{
[buf appendString: indent];
[buf appendString: @"<div class=\"content-bar\">\n"];
[self incIndent];

[buf appendString: indent];
[buf appendString: @"<div class=\"content-bar-top\">\n"];
[self incIndent];

[buf appendString: indent];
[buf appendString: @"<div class=\"content-bar-top-body\">\n"];
[self incIndent];

[buf appendString: indent];
[buf appendString:
Expand All @@ -1351,11 +1368,20 @@ - (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
[buf appendString:
@"<a href=\"#nav-bar-variables\">Variables</a><br>\n"];

[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; // content-bar-top-body
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; // content-bar-top

[buf appendString: indent];
[buf appendString: @"<div class=\"content-bar-bottom\">\n"];
[self incIndent];

[buf appendString: indent];
[buf appendString: @"<div class=\"content-bar-bottom-body\">\n"];
[self incIndent];

[buf appendString: indent];
[buf appendString: @"<a name=\"nav-bar-classes\">Classes</a>\n"];
Expand Down Expand Up @@ -1424,14 +1450,23 @@ - (void) outputNode: (GSXMLNode*)node to: (NSMutableString*)buf
target: nil
to: buf];

[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; // bar-bottom-body
[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; // bar-bottom

[self decIndent];
[buf appendString: indent];
[buf appendString: @"</div>\n"]; // content-bar

[buf appendString: indent];
[buf appendString: @"<div class=\"content-pane\">\n"];
[self incIndent];
[buf appendString: indent];
[buf appendString: @"<div class=\"content-pane-body\">\n"];
[self incIndent];
}

if (prevFile != nil)
Expand Down

0 comments on commit fc23434

Please sign in to comment.