mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Put gaythered markup into template before '<back>' if it is present.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14300 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e136a75855
commit
4f27f1321a
1 changed files with 6 additions and 2 deletions
|
@ -2066,10 +2066,14 @@ static BOOL snuggleStart(NSString *t)
|
|||
start = [str rangeOfString: tmp];
|
||||
if (start.length == 0)
|
||||
{
|
||||
start = [str rangeOfString: @"</body>"];
|
||||
start = [str rangeOfString: @"<back>"];
|
||||
if (start.length == 0)
|
||||
{
|
||||
NSLog(@"No </body> markup in %@ document", kind);
|
||||
start = [str rangeOfString: @"</body>"];
|
||||
}
|
||||
if (start.length == 0)
|
||||
{
|
||||
NSLog(@"No <back> or </body> markup in %@ document", kind);
|
||||
return NO;
|
||||
}
|
||||
[str insertString: tmp atIndex: start.location];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue