Thanks Colin, I've fixed these. Christiaan
On 6 Jun 2008, at 2:45 AM, Colin A. Smith wrote: > I found a small counting bug in [BDSKFormatParser > requiredFieldsForFormat:]. It causes fields in format strings inserted > with %f or %c to produce required field names with a lagging "}". > > Cheers. > > -Colin > > Index: BDSKFormatParser.m > =================================================================== > --- BDSKFormatParser.m (revision 13391) > +++ BDSKFormatParser.m (working copy) > @@ -1133,7 +1133,7 @@ > case 'c': > j = NSMaxRange([formatString rangeOfString:@"}" > options:0 range:NSMakeRange(i, l - i)]); > if (j != NSNotFound && j > i + 1) > - [arr addObject:[formatString > substringWithRange:NSMakeRange(i + 1, j - i - 1)]]; > + [arr addObject:[formatString > substringWithRange:NSMakeRange(i + 1, j - i - 2)]]; > break; > case 'i': > j = NSMaxRange([formatString rangeOfString:@"}" > options:0 range:NSMakeRange(i, l - i)]); > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Bibdesk-develop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bibdesk-develop ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Bibdesk-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bibdesk-develop
