Revision: 26895 http://sourceforge.net/p/bibdesk/svn/26895 Author: hofman Date: 2021-09-15 17:06:27 +0000 (Wed, 15 Sep 2021) Log Message: ----------- Save linked files and URLs also using lowercase field names
Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2021-09-15 17:01:33 UTC (rev 26894) +++ trunk/bibdesk/BibItem.m 2021-09-15 17:06:27 UTC (rev 26895) @@ -1727,15 +1727,15 @@ { // !!! inherit NSUInteger i, fileIndex = 1, urlIndex = 1, iMax = [files count]; - NSString *key = @"Bdsk-File-1"; + NSString *key = @"bdsk-file-1"; while ([pubFields objectForKey:key]) - key = [NSString stringWithFormat:@"Bdsk-File-%lu", (unsigned long)++fileIndex]; + key = [NSString stringWithFormat:@"bdsk-file-%lu", (unsigned long)++fileIndex]; - key = @"Bdsk-Url-1"; + key = @"bdsk-url-1"; while ([pubFields objectForKey:key]) - key = [NSString stringWithFormat:@"Bdsk-Url-%lu", (unsigned long)++urlIndex]; + key = [NSString stringWithFormat:@"bdsk-url-%lu", (unsigned long)++urlIndex]; NSMutableString *string = nil; NSString *value; @@ -1745,9 +1745,9 @@ for (i = 0; i < iMax; i++) { file = [files objectAtIndex:i]; if ([file isFile]) - key = [NSString stringWithFormat:@"Bdsk-File-%lu", (unsigned long)fileIndex++]; + key = [NSString stringWithFormat:@"bdsk-file-%lu", (unsigned long)fileIndex++]; else - key = [NSString stringWithFormat:@"Bdsk-Url-%lu", (unsigned long)urlIndex++]; + key = [NSString stringWithFormat:@"bdsk-url-%lu", (unsigned long)urlIndex++]; value = [file stringRelativeToPath:basePath]; BDSKPRECONDITION([value rangeOfCharacterFromSet:[NSCharacterSet curlyBraceCharacterSet]].length == 0); [string appendFormat:@",\n\t%@ = {%@}", key, value]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit