Don't count sublists as a separate list item

This commit is contained in:
Frederick John Milens III 2024-09-25 21:21:24 -05:00
parent 65ee82565d
commit b00f6e5526
2 changed files with 14 additions and 21 deletions

View file

@ -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')