Ensure autogsdoc outputs all paragraphs in the same way

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32825 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Quentin Mathe 2011-04-10 10:59:25 +00:00
parent fd0856ff58
commit 0f4d2e873c
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2011-04-10 Quentin Mathe <quentin.mathe@gmail.com>
* Tools/AGSOutput.m (-fitWords:from:to:maxSize:output:): Ensure all
paragraphs are output in the same way. Each paragraph starts on a new
line now, which results in a GSDoc output that looks a bit better and
is easier to parse.
2011-04-09 Nicola Pero <nicola.pero@meta-innovation.com>
* Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes):

View file

@ -204,10 +204,12 @@ static BOOL snuggleStart(NSString *t)
for (i = start; size < limit && i < end; i++)
{
NSString *t = [a objectAtIndex: i];
BOOL forceNewline = [t hasPrefix: @"<p>"];
BOOL elementEndReached = (nest == 0 && [t hasPrefix: @"</"] == YES);
if (nest == 0 && [t hasPrefix: @"</"] == YES)
if (elementEndReached || forceNewline)
{
break; // End of element reached.
break;
}
/*