Revision: 22106
          http://sourceforge.net/p/bibdesk/svn/22106
Author:   hofman
Date:     2018-03-07 15:58:25 +0000 (Wed, 07 Mar 2018)
Log Message:
-----------
don't ignore bibtex parser errors in bibtex web parser

Modified Paths:
--------------
    trunk/bibdesk/BDSKBibTeXWebParser.m

Modified: trunk/bibdesk/BDSKBibTeXWebParser.m
===================================================================
--- trunk/bibdesk/BDSKBibTeXWebParser.m 2018-03-07 15:21:19 UTC (rev 22105)
+++ trunk/bibdesk/BDSKBibTeXWebParser.m 2018-03-07 15:58:25 UTC (rev 22106)
@@ -78,7 +78,8 @@
             
             if ([BDSKBibTeXParser canParseString:string]) {
                 NSArray *bibtexItems = [BDSKBibTeXParser 
itemsFromString:string owner:[self delegate] error:&error];
-                [items addObjectsFromArray:bibtexItems];
+                if ([bibtexItems count] == 1 && [error 
isLocalErrorWithCode:kBDSKBibTeXParserFailed] == NO)
+                    [items addObjectsFromArray:bibtexItems];
             }
         }
        }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to