Revision: 28285 http://sourceforge.net/p/bibdesk/svn/28285 Author: hofman Date: 2023-06-04 21:01:23 +0000 (Sun, 04 Jun 2023) Log Message: ----------- don't try to parse html error page as bibtex for doi web parser
Modified Paths: -------------- trunk/bibdesk/BDSKDOIWebParser.m Modified: trunk/bibdesk/BDSKDOIWebParser.m =================================================================== --- trunk/bibdesk/BDSKDOIWebParser.m 2023-06-04 17:17:41 UTC (rev 28284) +++ trunk/bibdesk/BDSKDOIWebParser.m 2023-06-04 21:01:23 UTC (rev 28285) @@ -124,7 +124,10 @@ } - (NSString *)bibTeXStringFromDownload:(BDSKCitationDownload *)download { - return [[download string] stringByRemovingSurroundingWhitespace]; + NSString *bibtexString = [[download string] stringByRemovingSurroundingWhitespace]; + if ([bibtexString hasCaseInsensitivePrefix:@"<!doctype html"]) + return nil; + return bibtexString; } + (NSString *)name { return @"DOI"; } 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