From db2f5542f886558bc6d347bf8999dedc1cd6e2d6 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Wed, 7 Aug 2024 12:24:26 +0200 Subject: [PATCH] define class for dividing HRs and remove its in-line styling with a hard-coded CSS --- Tools/AGSHtml.m | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index cd2944a18..95b42f905 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -762,7 +762,7 @@ static NSMutableSet *textNodes = nil; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } else if ([name isEqual: @"contents"] == YES) { @@ -1075,7 +1075,7 @@ static NSMutableSet *textNodes = nil; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } else if ([name isEqual: @"gsdoc"] == YES) { @@ -1118,6 +1118,14 @@ static NSMutableSet *textNodes = nil; [self outputText: [children firstChild] to: buf]; [self decIndent]; [buf appendString: @"\n"]; + + /** handcrafted styles for previous in-line styles */ + [buf appendString: indent]; + [buf appendString: @"\n"]; #if 0 /** Css : TODO print.css **/ [buf appendString:@"\n"]; @@ -1390,7 +1398,7 @@ static NSMutableSet *textNodes = nil; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } else if ([name isEqual: @"label"] == YES) // %anchor { @@ -1519,7 +1527,7 @@ static NSMutableSet *textNodes = nil; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } else if ([name isEqual: @"method"] == YES) { @@ -1685,7 +1693,7 @@ static NSMutableSet *textNodes = nil; [self outputNode: node to: buf]; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } [buf appendString:@"\n"]; } @@ -1882,7 +1890,7 @@ static NSMutableSet *textNodes = nil; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } else if ([name isEqual: @"uref"] == YES) { @@ -1960,7 +1968,7 @@ static NSMutableSet *textNodes = nil; } [buf appendString: indent]; - [buf appendString: @"
\n"]; + [buf appendString: @"
\n"]; } else {