mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
tweak handling of parser abort
This commit is contained in:
parent
1cb6ef8572
commit
91108c69c3
2 changed files with 17 additions and 4 deletions
|
@ -1559,7 +1559,12 @@ NSLog(@"_processTag <%@%@ %@>", flag?@"/": @"", tag, attributes);
|
|||
[self _processTag: tag
|
||||
isEnd: NO
|
||||
withAttributes: attributes];
|
||||
[self _processTag: tag isEnd: YES withAttributes: nil];
|
||||
if (NO == this->abort)
|
||||
{
|
||||
[self _processTag: tag
|
||||
isEnd: YES
|
||||
withAttributes: nil];
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1597,9 +1602,12 @@ NSLog(@"_processTag <%@%@ %@>", flag?@"/": @"", tag, attributes);
|
|||
}
|
||||
if (c == '>')
|
||||
{
|
||||
[self _processTag: tag
|
||||
isEnd: (*addr(tp) == '/')
|
||||
withAttributes: attributes];
|
||||
if (NO == this->abort)
|
||||
{
|
||||
[self _processTag: tag
|
||||
isEnd: (*addr(tp) == '/')
|
||||
withAttributes: attributes];
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* get next argument (eats up to /, ?, >, =, space)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue