aboutsummaryrefslogtreecommitdiffstats
path: root/Source/GeneratePreviewForURL.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-16 07:42:39 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-16 07:42:39 +0000
commit697440c0e14c20ea719fbded60d5df1bed4330d0 (patch)
tree212542b4212049207c64d2daf91d798b5fce0b41 /Source/GeneratePreviewForURL.m
parentb9c7ce03b7c2c121c599e36000b68996dd762f1c (diff)
downloadsequelpro-697440c0e14c20ea719fbded60d5df1bed4330d0.tar.gz
sequelpro-697440c0e14c20ea719fbded60d5df1bed4330d0.tar.bz2
sequelpro-697440c0e14c20ea719fbded60d5df1bed4330d0.zip
• sql QL
- fixed appending of the entire sqlText after parsing - removed replacing of / for better wrapping since it'll break the syntax highlighting
Diffstat (limited to 'Source/GeneratePreviewForURL.m')
-rw-r--r--Source/GeneratePreviewForURL.m2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/GeneratePreviewForURL.m b/Source/GeneratePreviewForURL.m
index ba123c89..349837ff 100644
--- a/Source/GeneratePreviewForURL.m
+++ b/Source/GeneratePreviewForURL.m
@@ -438,7 +438,6 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
}
}
[loopPool release];
- [sqlHTML appendString:sqlText];
[sqlHTML appendString:truncatedString];
[sqlText release];
[truncatedString release];
@@ -451,7 +450,6 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview,
// Improve soft wrapping my making more characters wrap points
[sqlHTML replaceOccurrencesOfString:@"," withString:@",&#8203;" options:NSLiteralSearch range:NSMakeRange(0, [sqlHTML length])];
- [sqlHTML replaceOccurrencesOfString:@"/" withString:@"/&#8203;" options:NSLiteralSearch range:NSMakeRange(0, [sqlHTML length])];
html = [NSString stringWithFormat:template,
[NSString stringForByteSize:[[fileAttributes objectForKey:NSFileSize] longLongValue]],