minor fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12385 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-02-02 17:04:50 +00:00
parent 7146af96f0
commit 1e3a06a03c
2 changed files with 25 additions and 14 deletions

View file

@ -4,6 +4,8 @@
reference counts. reference counts.
* Source/NSMapTable.m: Improve warning logging for dodgy practices. * Source/NSMapTable.m: Improve warning logging for dodgy practices.
* Source/NSHashTable.m: ditto * Source/NSHashTable.m: ditto
* Tools/AGSHtml.m: A couple of minor fixes for systems where the xml
parser does not discard whitespace as it should.
2002-02-01 Richard Frith-Macdonald <rfm@gnu.org> 2002-02-01 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1233,6 +1233,8 @@ static NSMutableSet *textNodes = nil;
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<b>Standards:</b>"]; [buf appendString: @"<b>Standards:</b>"];
while (tmp != nil) while (tmp != nil)
{
if ([tmp type] == XML_ELEMENT_NODE)
{ {
if (first == YES) if (first == YES)
{ {
@ -1244,6 +1246,7 @@ static NSMutableSet *textNodes = nil;
[buf appendString: @", "]; [buf appendString: @", "];
} }
[buf appendString: [tmp name]]; [buf appendString: [tmp name]];
}
tmp = [tmp next]; tmp = [tmp next];
} }
[buf appendString: @"<br />\n"]; [buf appendString: @"<br />\n"];
@ -1656,11 +1659,14 @@ NSLog(@"Element '%@' not implemented", name); // FIXME
[buf appendString: @"<ul>\n"]; [buf appendString: @"<ul>\n"];
[self incIndent]; [self incIndent];
while (t != nil) while (t != nil)
{
if ([t type] == XML_ELEMENT_NODE)
{ {
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<li>"]; [buf appendString: @"<li>"];
[buf appendString: [t name]]; [buf appendString: [t name]];
[buf appendString: @"</li>\n"]; [buf appendString: @"</li>\n"];
}
t = [t next]; t = [t next];
} }
[self decIndent]; [self decIndent];
@ -1699,9 +1705,12 @@ NSLog(@"Element '%@' not implemented", name); // FIXME
to: buf]; to: buf];
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\" />\n"]; [buf appendString: @"<hr width=\"50%\" align=\"left\" />\n"];
while (node != nil && [[node name] isEqual: @"method"] == YES) while (node != nil)
{
if([[node name] isEqual: @"method"] == YES)
{ {
[self outputNode: node to: buf]; [self outputNode: node to: buf];
}
node = [node next]; node = [node next];
} }
} }