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

@ -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;
}
/*