Add some default output if something is not described

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12020 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-01-07 11:34:25 +00:00
parent e1effaf436
commit a9c5405920
2 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,7 @@
2002-01-07 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSHtml.m: Minor speedup.
* Tools/AGSOutput.m: Put something in place of empty descriptions.
* Tools/AGSParser.m: Rewrite handling of standards information to fix
bug in NO_GNUSTEP handling.
* Source/GNUmakefile: Don't document concrete number stuff ... not

View file

@ -564,10 +564,11 @@ static BOOL snuggleStart(NSString *t)
}
[str appendString: @" <desc>\n"];
if (comment != nil)
if ([comment length] == 0)
{
[self reformat: comment withIndent: 12 to: str];
comment = @"<em>Descripttion forthcoming.</em>";
}
[self reformat: comment withIndent: 12 to: str];
[str appendString: @" </desc>\n"];
if (standards != nil)
{
@ -748,10 +749,11 @@ static BOOL snuggleStart(NSString *t)
for (j = 0; j < ind; j++) [str appendString: @" "];
[str appendString: @"<desc>\n"];
if (comment != nil)
if ([comment length] == 0)
{
[self reformat: comment withIndent: ind + 2 to: str];
comment = @"<em>Descripttion forthcoming.</em>";
}
[self reformat: comment withIndent: ind + 2 to: str];
for (j = 0; j < ind; j++) [str appendString: @" "];
[str appendString: @"</desc>\n"];