diff --git a/ChangeLog b/ChangeLog index 41e6203cb..8e727834c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ reference counts. * Source/NSMapTable.m: Improve warning logging for dodgy practices. * 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 diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index 2ac38ca63..ca17ceac7 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -1234,16 +1234,19 @@ static NSMutableSet *textNodes = nil; [buf appendString: @"Standards:"]; while (tmp != nil) { - if (first == YES) + if ([tmp type] == XML_ELEMENT_NODE) { - first = NO; - [buf appendString: @" "]; + if (first == YES) + { + first = NO; + [buf appendString: @" "]; + } + else + { + [buf appendString: @", "]; + } + [buf appendString: [tmp name]]; } - else - { - [buf appendString: @", "]; - } - [buf appendString: [tmp name]]; tmp = [tmp next]; } [buf appendString: @"
\n"]; @@ -1657,10 +1660,13 @@ NSLog(@"Element '%@' not implemented", name); // FIXME [self incIndent]; while (t != nil) { - [buf appendString: indent]; - [buf appendString: @"
  • "]; - [buf appendString: [t name]]; - [buf appendString: @"
  • \n"]; + if ([t type] == XML_ELEMENT_NODE) + { + [buf appendString: indent]; + [buf appendString: @"
  • "]; + [buf appendString: [t name]]; + [buf appendString: @"
  • \n"]; + } t = [t next]; } [self decIndent]; @@ -1699,9 +1705,12 @@ NSLog(@"Element '%@' not implemented", name); // FIXME to: buf]; [buf appendString: indent]; [buf appendString: @"
    \n"]; - while (node != nil && [[node name] isEqual: @"method"] == YES) + while (node != nil) { - [self outputNode: node to: buf]; + if([[node name] isEqual: @"method"] == YES) + { + [self outputNode: node to: buf]; + } node = [node next]; } }