Revision: 21971
          http://sourceforge.net/p/bibdesk/svn/21971
Author:   hofman
Date:     2018-02-19 22:30:51 +0000 (Mon, 19 Feb 2018)
Log Message:
-----------
always add slash to path when needed

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

Modified: trunk/bibdesk/BDSKLinkedBibTeXParser.m
===================================================================
--- trunk/bibdesk/BDSKLinkedBibTeXParser.m      2018-02-19 22:27:19 UTC (rev 
21970)
+++ trunk/bibdesk/BDSKLinkedBibTeXParser.m      2018-02-19 22:30:51 UTC (rev 
21971)
@@ -100,11 +100,10 @@
                     bibtexURLString = [NSString stringWithFormat:@"%@://%@%@", 
[url scheme], [url host], bibtexURLString];
                 } else {
                     NSString *path = [url path];
-                    if ([NSString isEmptyString:[path pathExtension]] == NO) {
+                    if ([NSString isEmptyString:[path pathExtension]] == NO)
                         path = [path stringByDeletingLastPathComponent];
-                        if ([path hasSuffix:@"/"] == NO)
-                            path = [path stringByAppendingString:@"/"];
-                    }
+                    if ([path hasSuffix:@"/"] == NO)
+                        path = [path stringByAppendingString:@"/"];
                     bibtexURLString = [NSString 
stringWithFormat:@"%@://%@%@%@", [url scheme], [url host], path, 
bibtexURLString];
                 }
             }

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