Revision: 4709
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4709&view=rev
Author:   hofman
Date:     2008-09-29 17:44:01 +0000 (Mon, 29 Sep 2008)

Log Message:
-----------
Remove quotes from file names in pdfsync files if needed.

Modified Paths:
--------------
    trunk/SKPDFSynchronizer.m

Modified: trunk/SKPDFSynchronizer.m
===================================================================
--- trunk/SKPDFSynchronizer.m   2008-09-29 17:19:18 UTC (rev 4708)
+++ trunk/SKPDFSynchronizer.m   2008-09-29 17:44:01 UTC (rev 4709)
@@ -376,6 +376,8 @@
         if ([sc scanUpToCharactersFromSet:[NSCharacterSet newlineCharacterSet] 
intoString:&file] &&
             [sc scanCharactersFromSet:[NSCharacterSet newlineCharacterSet] 
intoString:NULL]) {
             
+            if ([file length] > 2 && [file characterAtIndex:0] == '"' && [file 
characterAtIndex:[file length] - 1] == '"')
+                file = [file substringWithRange:NSMakeRange(1, [file length] - 
2)];
             file = [self sourceFileForFileName:file 
defaultExtension:SKPDFSynchronizerTexExtension];
             [files addObject:file];
             
@@ -419,6 +421,8 @@
                     } else if (ch == '(') {
                         // start of a new source file
                         if ([sc scanUpToCharactersFromSet:[NSCharacterSet 
newlineCharacterSet] intoString:&file]) {
+                            if ([file length] > 2 && [file characterAtIndex:0] 
== '"' && [file characterAtIndex:[file length] - 1] == '"')
+                                file = [file substringWithRange:NSMakeRange(1, 
[file length] - 2)];
                             file = [self sourceFileForFileName:file 
defaultExtension:SKPDFSynchronizerTexExtension];
                             [files addObject:file];
                             if ([lines objectForKey:file] == nil) {


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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to