Revision: 17923
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17923&view=rev
Author:   hofman
Date:     2011-06-02 21:14:05 +0000 (Thu, 02 Jun 2011)

Log Message:
-----------
only look for second optional argument when first is present

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

Modified: trunk/bibdesk/BDSKFormatParser.m
===================================================================
--- trunk/bibdesk/BDSKFormatParser.m    2011-06-02 17:51:46 UTC (rev 17922)
+++ trunk/bibdesk/BDSKFormatParser.m    2011-06-02 21:14:05 UTC (rev 17923)
@@ -562,12 +562,12 @@
                         if ([scanner scanString:@"[" intoString:NULL]) {
                             if (NO == [scanner scanUpToString:@"]" 
intoString:&sepChars]) sepChars = @" ";
                             [scanner scanString:@"]" intoString:NULL];
+                            // look for [slash]
+                            if ([scanner scanString:@"[" intoString:NULL]) {
+                                if (NO == [scanner scanUpToString:@"]" 
intoString:&slash]) slash = @"";
+                                [scanner scanString:@"]" intoString:NULL];
+                            }
                         }
-                        // look for [slash]
-                        if ([scanner scanString:@"[" intoString:NULL]) {
-                            if (NO == [scanner scanUpToString:@"]" 
intoString:&slash]) slash = @"";
-                            [scanner scanString:@"]" intoString:NULL];
-                        }
                         NSString *wordsString = [pub stringValueOfField:key];
                         NSUInteger i, numWords = 0;
                         if (NO == [scanner scanUnsignedInteger:&numWords]) 
numWords = 0;


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

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to