mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-03 05:20:42 +00:00
Don't count sublists as a separate list item
This commit is contained in:
parent
65ee82565d
commit
b00f6e5526
2 changed files with 14 additions and 21 deletions
|
@ -1110,7 +1110,6 @@ documentAttributes: (NSDictionary **)dict
|
|||
|
||||
NSCharacterSet *newlineCharacterSet = [NSCharacterSet newlineCharacterSet];
|
||||
|
||||
BOOL isNested = NO;
|
||||
NSUInteger itemNumber = 1;
|
||||
NSUInteger index;
|
||||
for (index=1; index<length; index++)
|
||||
|
@ -1125,12 +1124,6 @@ documentAttributes: (NSDictionary **)dict
|
|||
if ([list isEqual: [textLists lastObject]])
|
||||
{
|
||||
itemNumber++;
|
||||
isNested = NO;
|
||||
}
|
||||
else if (!isNested && [textLists containsObject: list])
|
||||
{
|
||||
itemNumber++;
|
||||
isNested = YES;
|
||||
}
|
||||
|
||||
if (buffer[index-1] == '\r' && buffer[index] == '\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue