Fix printf format bug

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19698 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-07-09 11:58:44 +00:00
parent ae3f5259a3
commit 86694004a9
2 changed files with 30 additions and 22 deletions

View file

@ -1,3 +1,7 @@
2004-07-06 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSHtml.h: Fix printf missing argument bug.
2004-07-05 Richard Frith-Macdonald <rfm@gnu.org> 2004-07-05 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Unicode.m: GSToUnicode() be strict about converting ASCII * Source/Unicode.m: GSToUnicode() be strict about converting ASCII

View file

@ -455,10 +455,11 @@ static NSString *mainFont = nil;
[buf appendFormat: @"<b>%@</b>\n", title]; [buf appendFormat: @"<b>%@</b>\n", title];
} }
[buf appendString: indent]; [buf appendString: indent];
if (!isBareStyle) { if (!isBareStyle)
[buf appendString: @"<ul>"]; {
[self incIndent]; [buf appendString: @"<ul>"];
} [self incIndent];
}
[buf appendString: @"\n"]; [buf appendString: @"\n"];
a = [dict allKeys]; a = [dict allKeys];
@ -526,11 +527,12 @@ static NSString *mainFont = nil;
} }
if (!isBareStyle) { if (!isBareStyle)
[self decIndent]; {
[buf appendString: indent]; [self decIndent];
[buf appendString: @"</ul>"]; [buf appendString: indent];
} [buf appendString: @"</ul>"];
}
[buf appendString: @"\n"]; [buf appendString: @"\n"];
} }
} }
@ -2329,27 +2331,29 @@ static NSString *mainFont = nil;
if (node != nil && [[node name] isEqual: @"ivariable"] == YES) if (node != nil && [[node name] isEqual: @"ivariable"] == YES)
{ {
NSMutableString *ibuf = buf;
/* /*
* If want instance variables at end, throw it all into an alternate * If want instance variables at end, throw it all into an alternate
* buffer and just put a link here; later alt buf must be appended. * buffer and just put a link here; later alt buf must be appended.
*/ */
NSMutableString *ibuf = buf; if (ivarsAtEnd)
if (ivarsAtEnd) { {
ibuf = ivarBuf; ibuf = ivarBuf;
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<hr width=\"50%\" align=\"left\" />\n"]; [buf appendString: @"<hr width=\"50%\" align=\"left\" />\n"];
[buf appendString: indent]; [buf appendString: indent];
[buf appendFormat: @"<a href=\"#_%@_ivars\">Instance Variables</a>\n", [buf appendFormat: @"<a href=\"#_%@_ivars\">Instance Variables</a>\n",
classname]; classname];
[buf appendString: indent]; [buf appendString: indent];
[buf appendString: @"<br/><br/>\n"]; [buf appendString: @"<br/><br/>\n"];
[ibuf appendFormat: @"<a name=\"_%@_ivars\"/>"]; [ibuf appendFormat: @"<a name=\"_%@_ivars\"/>", classname];
} }
[ibuf appendString: indent]; [ibuf appendString: indent];
[ibuf appendString: @"<br/><hr width=\"50%\" align=\"left\" />\n"]; [ibuf appendString: @"<br/><hr width=\"50%\" align=\"left\" />\n"];
[ibuf appendString: indent]; [ibuf appendString: indent];
[ibuf appendFormat: @"<h2>Instance Variables for %@ Class</h2>\n", [ibuf appendFormat: @"<h2>Instance Variables for %@ Class</h2>\n",
classname]; classname];
while (node != nil && [[node name] isEqual: @"ivariable"] == YES) while (node != nil && [[node name] isEqual: @"ivariable"] == YES)
{ {
[self outputNode: node to: ibuf]; [self outputNode: node to: ibuf];