<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,9 +22,9 @@
 #import &quot;BEncoding.h&quot;
 
 typedef struct {
-	NSUInteger			length;
-	NSUInteger			offset;
-	const char			*bytes;
+    NSUInteger          length;
+    NSUInteger          offset;
+    const char          *bytes;
 } BEncodingData;
 
 // Private methods
@@ -61,192 +61,192 @@ typedef struct {
 
 +(NSData *)encodedDataFromObject:(id)object
 {
-	NSMutableData *data = [[NSMutableData alloc] init];
-	char buffer[32]; // Small buffer to hold length strings. Needs to hold a 64bit number.
-	
-	memset(buffer, 0, sizeof(buffer)); // Ensure the buffer is zeroed
-    
-	if ([object isKindOfClass:[NSData class]]) 
-	{
-		// Encode a chunk of bytes from an NSData.
-		
-		snprintf(buffer, 32, &quot;%lu:&quot;, [object length]);
+    NSMutableData *data = [[NSMutableData alloc] init];
+    char buffer[32]; // Small buffer to hold length strings. Needs to hold a 64bit number.
+    
+    memset(buffer, 0, sizeof(buffer)); // Ensure the buffer is zeroed
+    
+    if ([object isKindOfClass:[NSData class]]) 
+    {
+        // Encode a chunk of bytes from an NSData.
+        
+        snprintf(buffer, 32, &quot;%lu:&quot;, [object length]);
+        
+        [data appendBytes:buffer length:strlen(buffer)];
+        [data appendData:object];
+        
+        return data;
+    } 
+    if ([object isKindOfClass:[NSString class]]) 
+    {
+        // Encode an NSString
+        
+        NSData *stringData = [object dataUsingEncoding:NSUTF8StringEncoding];
+        snprintf(buffer, 32, &quot;%lu:&quot;, [stringData length]);
+        
+        [data appendBytes:buffer length:strlen(buffer)];
+        [data appendData:stringData];
+        
+        return data;
+    } 
+    else if ([object isKindOfClass:[NSNumber class]]) 
+    {
+        // Encode an NSNumber
+        
+        snprintf(buffer, 32, &quot;i%llue&quot;, [object longLongValue]);
+        
+        [data appendBytes:buffer length:strlen(buffer)];
+        
+        return data;
+    }
+    else if ([object isKindOfClass:[NSArray class]]) 
+    {
+        // Encode an NSArray
         
-		[data appendBytes:buffer length:strlen(buffer)];
-		[data appendData:object];
+        [data appendBytes:&quot;l&quot; length:1];
         
-		return data;
-	} 
-	if ([object isKindOfClass:[NSString class]]) 
-	{
-		// Encode an NSString
-		
-		NSData *stringData = [object dataUsingEncoding:NSUTF8StringEncoding];
-		snprintf(buffer, 32, &quot;%lu:&quot;, [stringData length]);
+        for (id item in object) {
+            [data appendData:[BEncoding encodedDataFromObject:item]];
+        }
         
-		[data appendBytes:buffer length:strlen(buffer)];
-		[data appendData:stringData];
+        [data appendBytes:&quot;e&quot; length:1];
         
-		return data;
-	} 
-	else if ([object isKindOfClass:[NSNumber class]]) 
-	{
-		// Encode an NSNumber
-		
-		snprintf(buffer, 32, &quot;i%llue&quot;, [object longLongValue]);
+        return data;
+    }
+    else if ([object isKindOfClass:[NSDictionary class]]) 
+    {
+        // Encode an NSDictionary
         
-		[data appendBytes:buffer length:strlen(buffer)];
+        [data appendBytes:&quot;d&quot; length:1];
         
-		return data;
-	}
-	else if ([object isKindOfClass:[NSArray class]]) 
-	{
-		// Encode an NSArray
-		
-		[data appendBytes:&quot;l&quot; length:1];
-		
-		for (id item in object) {
-			[data appendData:[BEncoding encodedDataFromObject:item]];
-		}
-		
-		[data appendBytes:&quot;e&quot; length:1];
-		
-		return data;
-	}
-	else if ([object isKindOfClass:[NSDictionary class]]) 
-	{
-		// Encode an NSDictionary
-		
-		[data appendBytes:&quot;d&quot; length:1];
-		
-		for (id key in object) {
-			// Assert that the key is a string. It is expected that you'll check before
-			// passing this class an array of objects as keys that are not NSStrings.
-			
-			assert([key isKindOfClass:[NSString class]]);
-			
-			NSData *stringData = [key dataUsingEncoding:NSUTF8StringEncoding];
-			snprintf(buffer, 32, &quot;%lu:&quot;, [stringData length]);
-			
-			[data appendBytes:buffer length:strlen(buffer)];
-			[data appendData:stringData];
-			[data appendData:[BEncoding encodedDataFromObject:[object objectForKey:key]]];
-		}
-		
-		[data appendBytes:&quot;e&quot; length:1];
-		return data;
-	}
-    
-	return nil;
+        for (id key in object) {
+            // Assert that the key is a string. It is expected that you'll check before
+            // passing this class an array of objects as keys that are not NSStrings.
+            
+            assert([key isKindOfClass:[NSString class]]);
+            
+            NSData *stringData = [key dataUsingEncoding:NSUTF8StringEncoding];
+            snprintf(buffer, 32, &quot;%lu:&quot;, [stringData length]);
+            
+            [data appendBytes:buffer length:strlen(buffer)];
+            [data appendData:stringData];
+            [data appendData:[BEncoding encodedDataFromObject:[object objectForKey:key]]];
+        }
+        
+        [data appendBytes:&quot;e&quot; length:1];
+        return data;
+    }
+    
+    return nil;
 }
 
 +(NSNumber *)numberFromEncodedData:(BEncodingData *)data
 {
-	NSMutableString *numberString = [[NSMutableString alloc] init];
-	long long int	number;
-	
-	assert(data-&gt;bytes[data-&gt;offset] == 'i');
-	
-	data-&gt;offset++; // We start on the i so we need to move by one.
-	
-	while (data-&gt;offset &lt; data-&gt;length &amp;&amp; data-&gt;bytes[data-&gt;offset] != 'e') {
-		[numberString appendFormat:@&quot;%c&quot;, data-&gt;bytes[data-&gt;offset++]];
-	}
-	
-	if (![[NSScanner scannerWithString:numberString] scanLongLong:&amp;number])
-		return nil;
-	
-	data-&gt;offset++; // Always move the offset off the end of the encoded item.
-	
-	return [NSNumber numberWithLongLong:number];
+    NSMutableString *numberString = [[NSMutableString alloc] init];
+    long long int   number;
+    
+    assert(data-&gt;bytes[data-&gt;offset] == 'i');
+    
+    data-&gt;offset++; // We start on the i so we need to move by one.
+    
+    while (data-&gt;offset &lt; data-&gt;length &amp;&amp; data-&gt;bytes[data-&gt;offset] != 'e') {
+        [numberString appendFormat:@&quot;%c&quot;, data-&gt;bytes[data-&gt;offset++]];
+    }
+    
+    if (![[NSScanner scannerWithString:numberString] scanLongLong:&amp;number])
+        return nil;
+    
+    data-&gt;offset++; // Always move the offset off the end of the encoded item.
+    
+    return [NSNumber numberWithLongLong:number];
 }
 
 +(NSData *)dataFromEncodedData:(BEncodingData *)data
 {
-	NSMutableString *dataLength = [[NSMutableString alloc] init];
-	NSMutableData *decodedData = [[NSMutableData alloc] init];
-	
-	if (data-&gt;bytes[data-&gt;offset] &lt; '0' | data-&gt;bytes[data-&gt;offset] &gt; '9')
-		return nil; // Needed because we must fail to create a dictionary if it isn't a string.
-	
-	// strings are special; they start with a number so we don't move by one.
-	
-	while (data-&gt;offset &lt; data-&gt;length &amp;&amp; data-&gt;bytes[data-&gt;offset] != ':') {
-		[dataLength appendFormat:@&quot;%c&quot;, data-&gt;bytes[data-&gt;offset++]];
-	}
-	
-	if (data-&gt;bytes[data-&gt;offset] != ':')
-		return nil; // We must have overrun the end of the bencoded string.
-	
-	data-&gt;offset++;
-	
-	[decodedData appendBytes:data-&gt;bytes+data-&gt;offset length:[dataLength integerValue]];
-	
-	data-&gt;offset += [dataLength integerValue]; // Always move the offset off the end of the encoded item.
-	
-	return decodedData;
+    NSMutableString *dataLength = [[NSMutableString alloc] init];
+    NSMutableData *decodedData = [[NSMutableData alloc] init];
+    
+    if (data-&gt;bytes[data-&gt;offset] &lt; '0' | data-&gt;bytes[data-&gt;offset] &gt; '9')
+        return nil; // Needed because we must fail to create a dictionary if it isn't a string.
+    
+    // strings are special; they start with a number so we don't move by one.
+    
+    while (data-&gt;offset &lt; data-&gt;length &amp;&amp; data-&gt;bytes[data-&gt;offset] != ':') {
+        [dataLength appendFormat:@&quot;%c&quot;, data-&gt;bytes[data-&gt;offset++]];
+    }
+    
+    if (data-&gt;bytes[data-&gt;offset] != ':')
+        return nil; // We must have overrun the end of the bencoded string.
+    
+    data-&gt;offset++;
+    
+    [decodedData appendBytes:data-&gt;bytes+data-&gt;offset length:[dataLength integerValue]];
+    
+    data-&gt;offset += [dataLength integerValue]; // Always move the offset off the end of the encoded item.
+    
+    return decodedData;
 }
 
 +(NSString *)stringFromEncodedData:(BEncodingData *)data
 {
-	/* A string is just bencoded data */
-	
-	NSData *decodedData = [self dataFromEncodedData:data];
-	
-	if (decodedData == nil)
-		return nil;
-	
-	return [[NSString alloc] initWithBytes:[decodedData bytes] length:[decodedData length] encoding:NSUTF8StringEncoding];
+    /* A string is just bencoded data */
+    
+    NSData *decodedData = [self dataFromEncodedData:data];
+    
+    if (decodedData == nil)
+        return nil;
+    
+    return [[NSString alloc] initWithBytes:[decodedData bytes] length:[decodedData length] encoding:NSUTF8StringEncoding];
 }
 
 +(NSArray *)arrayFromEncodedData:(BEncodingData *)data
 {
-	NSMutableArray *array = [[NSMutableArray alloc] init];
-	
-	assert(data-&gt;bytes[data-&gt;offset] == 'l');
-    
-	data-&gt;offset++; // Move off the l so we point to the first encoded item.
-	
-	while (data-&gt;bytes[data-&gt;offset] != 'e') {
-		[array addObject:[BEncoding objectFromData:data]];
-	}
-    
-	data-&gt;offset++; // Always move off the end of the encoded item.
-	
-	return array;
+    NSMutableArray *array = [[NSMutableArray alloc] init];
+    
+    assert(data-&gt;bytes[data-&gt;offset] == 'l');
+    
+    data-&gt;offset++; // Move off the l so we point to the first encoded item.
+    
+    while (data-&gt;bytes[data-&gt;offset] != 'e') {
+        [array addObject:[BEncoding objectFromData:data]];
+    }
+    
+    data-&gt;offset++; // Always move off the end of the encoded item.
+    
+    return array;
 }
 
 +(NSDictionary *)dictionaryFromEncodedData:(BEncodingData *)data
 {
-	NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init];
-	NSString *key = nil;
-	id value = nil;
-	
-	assert(data-&gt;bytes[data-&gt;offset] == 'd');
-	
-	data-&gt;offset++; // Move off the d so we point to the string key.
-	
-	while (data-&gt;bytes[data-&gt;offset] != 'e') {
-		if (data-&gt;bytes[data-&gt;offset] &gt;= '0' &amp;&amp; data-&gt;bytes[data-&gt;offset] &lt;= '9') {
-			// Dictionaries are a bencoded string with a bencoded value.
-			key = [BEncoding stringFromEncodedData:data];
-			value = [BEncoding objectFromData:data];
-			if (key != nil &amp;&amp; value != nil)
-				[dictionary setValue:value forKey:key];
-		}
-	}
-    
-	data-&gt;offset++; // Move off the e so we point to the next encoded item.
-	
-	return dictionary;
+    NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init];
+    NSString *key = nil;
+    id value = nil;
+    
+    assert(data-&gt;bytes[data-&gt;offset] == 'd');
+    
+    data-&gt;offset++; // Move off the d so we point to the string key.
+    
+    while (data-&gt;bytes[data-&gt;offset] != 'e') {
+        if (data-&gt;bytes[data-&gt;offset] &gt;= '0' &amp;&amp; data-&gt;bytes[data-&gt;offset] &lt;= '9') {
+            // Dictionaries are a bencoded string with a bencoded value.
+            key = [BEncoding stringFromEncodedData:data];
+            value = [BEncoding objectFromData:data];
+            if (key != nil &amp;&amp; value != nil)
+                [dictionary setValue:value forKey:key];
+        }
+    }
+    
+    data-&gt;offset++; // Move off the e so we point to the next encoded item.
+    
+    return dictionary;
 }
 
 +(id)objectFromData:(BEncodingData *)data
 {
-	/* Each of the decoders expect that the offset points to the first character
-	 * of the encoded entity, for example the i in the bencoded integer &quot;i18e&quot; */
-	
-	switch (data-&gt;bytes[data-&gt;offset]) {
+    /* Each of the decoders expect that the offset points to the first character
+     * of the encoded entity, for example the i in the bencoded integer &quot;i18e&quot; */
+    
+    switch (data-&gt;bytes[data-&gt;offset]) {
         case 'l':
             return [BEncoding arrayFromEncodedData:data];
             break;
@@ -260,24 +260,24 @@ typedef struct {
             if (data-&gt;bytes[data-&gt;offset] &gt;= '0' &amp;&amp; data-&gt;bytes[data-&gt;offset] &lt;= '9')
                 return [BEncoding dataFromEncodedData:data];
             break;
-	}
-	
-	// If we reach here, it doesn't appear that this is bencoded data. So, we'll
-	// just return nil and advance to the next byte in the hopes we'll decode
-	// something useful. Not sure if this is a good strategy.
-	
-	data-&gt;offset++;
-	return nil;
+    }
+    
+    // If we reach here, it doesn't appear that this is bencoded data. So, we'll
+    // just return nil and advance to the next byte in the hopes we'll decode
+    // something useful. Not sure if this is a good strategy.
+    
+    data-&gt;offset++;
+    return nil;
 }
 
 +(id)objectFromEncodedData:(NSData *)sourceData
 {
-	BEncodingData data;
-	data.bytes = [sourceData bytes];
-	data.length = [sourceData length];
-	data.offset = 0;
+    BEncodingData data;
+    data.bytes = [sourceData bytes];
+    data.length = [sourceData length];
+    data.offset = 0;
     
-	return [BEncoding objectFromData:&amp;data];
+    return [BEncoding objectFromData:&amp;data];
 }
 
 @end</diff>
      <filename>BEncoding.m</filename>
    </modified>
    <modified>
      <diff>@@ -12,13 +12,13 @@
 
 OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
 {
-	NSLog(@&quot;Quicklook torrent thingy going!&quot;);
-	CFDataRef data = (CFDataRef) getTorrentPreview((NSURL*) url);
-	if(data){
-		CFDictionaryRef props = (CFDictionaryRef) [NSDictionary dictionary];
-		QLPreviewRequestSetDataRepresentation(preview, data, kUTTypeHTML, props);
-	}
-	
+    NSLog(@&quot;Quicklook torrent thingy going!&quot;);
+    CFDataRef data = (CFDataRef) getTorrentPreview((NSURL*) url);
+    if(data){
+        CFDictionaryRef props = (CFDictionaryRef) [NSDictionary dictionary];
+        QLPreviewRequestSetDataRepresentation(preview, data, kUTTypeHTML, props);
+    }
+    
     return noErr;
 }
 </diff>
      <filename>GeneratePreviewForURL.m</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 //==============================================================================
 //
-//	DO NO MODIFY THE CONTENT OF THIS FILE
+//  DO NO MODIFY THE CONTENT OF THIS FILE
 //
-//	This file contains the generic CFPlug-in code necessary for your generator
-//	To complete your generator implement the function in GenerateThumbnailForURL/GeneratePreviewForURL.c
+//  This file contains the generic CFPlug-in code necessary for your generator
+//  To complete your generator implement the function in GenerateThumbnailForURL/GeneratePreviewForURL.c
 //
 //==============================================================================
 
@@ -18,7 +18,7 @@
 #include &lt;QuickLook/QuickLook.h&gt;
 
 // -----------------------------------------------------------------------------
-//	constants
+//  constants
 // -----------------------------------------------------------------------------
 
 // Don't modify this line
@@ -33,7 +33,7 @@
 
 
 // -----------------------------------------------------------------------------
-//	typedefs
+//  typedefs
 // -----------------------------------------------------------------------------
 
 // The thumbnail generation function to be implemented in GenerateThumbnailForURL.c
@@ -53,9 +53,9 @@ typedef struct __QuickLookGeneratorPluginType
 } QuickLookGeneratorPluginType;
 
 // -----------------------------------------------------------------------------
-//	prototypes
+//  prototypes
 // -----------------------------------------------------------------------------
-//	Forward declaration for the IUnknown implementation.
+//  Forward declaration for the IUnknown implementation.
 //
 
 QuickLookGeneratorPluginType  *AllocQuickLookGeneratorPluginType(CFUUIDRef inFactoryID);
@@ -66,9 +66,9 @@ ULONG                        QuickLookGeneratorPluginAddRef(void *thisInstance);
 ULONG                        QuickLookGeneratorPluginRelease(void *thisInstance);
 
 // -----------------------------------------------------------------------------
-//	myInterfaceFtbl	definition
+//  myInterfaceFtbl definition
 // -----------------------------------------------------------------------------
-//	The QLGeneratorInterfaceStruct function table.
+//  The QLGeneratorInterfaceStruct function table.
 //
 static QLGeneratorInterfaceStruct myInterfaceFtbl = {
     NULL,
@@ -83,9 +83,9 @@ static QLGeneratorInterfaceStruct myInterfaceFtbl = {
 
 
 // -----------------------------------------------------------------------------
-//	AllocQuickLookGeneratorPluginType
+//  AllocQuickLookGeneratorPluginType
 // -----------------------------------------------------------------------------
-//	Utility function that allocates a new instance.
+//  Utility function that allocates a new instance.
 //      You can do some initial setup for the generator here if you wish
 //      like allocating globals etc...
 //
@@ -110,10 +110,10 @@ QuickLookGeneratorPluginType *AllocQuickLookGeneratorPluginType(CFUUIDRef inFact
 }
 
 // -----------------------------------------------------------------------------
-//	DeallocQuickLookGeneratorPluginType
+//  DeallocQuickLookGeneratorPluginType
 // -----------------------------------------------------------------------------
-//	Utility function that deallocates the instance when
-//	the refCount goes to zero.
+//  Utility function that deallocates the instance when
+//  the refCount goes to zero.
 //      In the current implementation generator interfaces are never deallocated
 //      but implement this as this might change in the future
 //
@@ -134,9 +134,9 @@ void DeallocQuickLookGeneratorPluginType(QuickLookGeneratorPluginType *thisInsta
 }
 
 // -----------------------------------------------------------------------------
-//	QuickLookGeneratorQueryInterface
+//  QuickLookGeneratorQueryInterface
 // -----------------------------------------------------------------------------
-//	Implementation of the IUnknown QueryInterface function.
+//  Implementation of the IUnknown QueryInterface function.
 //
 HRESULT QuickLookGeneratorQueryInterface(void *thisInstance,REFIID iid,LPVOID *ppv)
 {
@@ -168,9 +168,9 @@ HRESULT QuickLookGeneratorQueryInterface(void *thisInstance,REFIID iid,LPVOID *p
 // -----------------------------------------------------------------------------
 // QuickLookGeneratorPluginAddRef
 // -----------------------------------------------------------------------------
-//	Implementation of reference counting for this type. Whenever an interface
-//	is requested, bump the refCount for the instance. NOTE: returning the
-//	refcount is a convention but is not required so don't rely on it.
+//  Implementation of reference counting for this type. Whenever an interface
+//  is requested, bump the refCount for the instance. NOTE: returning the
+//  refcount is a convention but is not required so don't rely on it.
 //
 ULONG QuickLookGeneratorPluginAddRef(void *thisInstance)
 {
@@ -181,8 +181,8 @@ ULONG QuickLookGeneratorPluginAddRef(void *thisInstance)
 // -----------------------------------------------------------------------------
 // QuickLookGeneratorPluginRelease
 // -----------------------------------------------------------------------------
-//	When an interface is released, decrement the refCount.
-//	If the refCount goes to zero, deallocate the instance.
+//  When an interface is released, decrement the refCount.
+//  If the refCount goes to zero, deallocate the instance.
 //
 ULONG QuickLookGeneratorPluginRelease(void *thisInstance)
 {</diff>
      <filename>main.c</filename>
    </modified>
    <modified>
      <diff>@@ -3,32 +3,32 @@
 
 NSString *stringFromFileSize(NSInteger theSize)
 {
-	/*
-	 From http://snippets.dzone.com/posts/show/3038
-	 */
-	float floatSize = theSize;
-	if (theSize&lt;1023)
-		return([NSString stringWithFormat:@&quot;%i bytes&quot;,theSize]);
-	floatSize = floatSize / 1024;
-	if (floatSize&lt;1023)
-		return([NSString stringWithFormat:@&quot;%1.1f KB&quot;,floatSize]);
-	floatSize = floatSize / 1024;
-	if (floatSize&lt;1023)
-		return([NSString stringWithFormat:@&quot;%1.1f MB&quot;,floatSize]);
-	floatSize = floatSize / 1024;
-	
-	return([NSString stringWithFormat:@&quot;%1.1f GB&quot;,floatSize]);
+    /*
+     From http://snippets.dzone.com/posts/show/3038
+     */
+    float floatSize = theSize;
+    if (theSize&lt;1023)
+        return([NSString stringWithFormat:@&quot;%i bytes&quot;,theSize]);
+    floatSize = floatSize / 1024;
+    if (floatSize&lt;1023)
+        return([NSString stringWithFormat:@&quot;%1.1f KB&quot;,floatSize]);
+    floatSize = floatSize / 1024;
+    if (floatSize&lt;1023)
+        return([NSString stringWithFormat:@&quot;%1.1f MB&quot;,floatSize]);
+    floatSize = floatSize / 1024;
+    
+    return([NSString stringWithFormat:@&quot;%1.1f GB&quot;,floatSize]);
 }
 
 NSString *stringFromData(NSData *torrent, NSString *key)
 {
-	NSData *rawkey = [torrent valueForKey:key];
-	NSString *strdata = [NSString stringWithUTF8String:[rawkey bytes]];
-	return strdata;
+    NSData *rawkey = [torrent valueForKey:key];
+    NSString *strdata = [NSString stringWithUTF8String:[rawkey bytes]];
+    return strdata;
 }
 
 void replacer(NSMutableString *html, NSString *replaceThis, NSString *withThis, NSString *defaultString) {
-	if(withThis == nil) withThis = defaultString;
+    if(withThis == nil) withThis = defaultString;
     [html replaceOccurrencesOfString:replaceThis
                           withString:withThis
                              options:NSLiteralSearch
@@ -37,34 +37,34 @@ void replacer(NSMutableString *html, NSString *replaceThis, NSString *withThis,
 
 NSDictionary *getTorrentInfo(NSURL *url)
 {
-	// Read raw file, and de-bencode
-	NSData *rawdata = [NSData dataWithContentsOfURL:url];
-	NSData *torrent = [BEncoding objectFromEncodedData:rawdata];
+    // Read raw file, and de-bencode
+    NSData *rawdata = [NSData dataWithContentsOfURL:url];
+    NSData *torrent = [BEncoding objectFromEncodedData:rawdata];
     
-	NSData *infoData = [torrent valueForKey:@&quot;info&quot;];
+    NSData *infoData = [torrent valueForKey:@&quot;info&quot;];
 
-	// Retrive interesting data
-	NSString *announce = stringFromData(torrent, @&quot;announce&quot;);
+    // Retrive interesting data
+    NSString *announce = stringFromData(torrent, @&quot;announce&quot;);
     
-	NSString *torrentName = stringFromData(infoData, @&quot;name&quot;);
+    NSString *torrentName = stringFromData(infoData, @&quot;name&quot;);
 
     NSString *length = [infoData valueForKey:@&quot;length&quot;];
 
-	NSNumber *isPrivate;
-	if([[infoData valueForKey:@&quot;private&quot;] isNotEqualTo:NULL]){
-		isPrivate = [NSNumber numberWithBool:YES];
-	}else{
-		isPrivate = [NSNumber numberWithBool:NO];
-	}
+    NSNumber *isPrivate;
+    if([[infoData valueForKey:@&quot;private&quot;] isNotEqualTo:NULL]){
+        isPrivate = [NSNumber numberWithBool:YES];
+    }else{
+        isPrivate = [NSNumber numberWithBool:NO];
+    }
 
-	// Get filenames/sizes
-	NSArray *filesData = [infoData valueForKey:@&quot;files&quot;];
+    // Get filenames/sizes
+    NSArray *filesData = [infoData valueForKey:@&quot;files&quot;];
 
     NSInteger totalSize = 0;
-	NSMutableArray *allFiles = [NSMutableArray array];
-	for (int i = 0; i &lt; [filesData count]; i++) {
-		NSData *currentFileData = [filesData objectAtIndex:i];
-		NSString *currentSize = [currentFileData valueForKey:@&quot;length&quot;];
+    NSMutableArray *allFiles = [NSMutableArray array];
+    for (int i = 0; i &lt; [filesData count]; i++) {
+        NSData *currentFileData = [filesData objectAtIndex:i];
+        NSString *currentSize = [currentFileData valueForKey:@&quot;length&quot;];
         
         NSMutableDictionary *currentFile = [NSMutableDictionary dictionaryWithObject:currentSize forKey:@&quot;length&quot;];
 
@@ -81,27 +81,27 @@ NSDictionary *getTorrentInfo(NSURL *url)
         }
         [currentFile setObject:currentFilePath forKey:@&quot;filename&quot;];
         [allFiles addObject:currentFile];
-	}
+    }
     
     // Store interesting data in dictionary, and return it
 
-	NSMutableDictionary *ret = [NSMutableDictionary dictionary];
+    NSMutableDictionary *ret = [NSMutableDictionary dictionary];
     if(length != NULL) [ret setObject:length forKey:@&quot;length&quot;];
-	if(announce != NULL) [ret setObject:announce forKey:@&quot;announce&quot;];
-	if(torrentName != NULL) [ret setObject:torrentName forKey:@&quot;torrentName&quot;];
-	if(isPrivate != NULL) [ret setObject:isPrivate forKey:@&quot;isPrivate&quot;];
-	if(allFiles != NULL) [ret setObject:allFiles forKey:@&quot;files&quot;];
+    if(announce != NULL) [ret setObject:announce forKey:@&quot;announce&quot;];
+    if(torrentName != NULL) [ret setObject:torrentName forKey:@&quot;torrentName&quot;];
+    if(isPrivate != NULL) [ret setObject:isPrivate forKey:@&quot;isPrivate&quot;];
+    if(allFiles != NULL) [ret setObject:allFiles forKey:@&quot;files&quot;];
     [ret setObject:[NSNumber numberWithInteger:totalSize] forKey:@&quot;totalSize&quot;];
 
-	return ret;
+    return ret;
 }
 
 NSData *getTorrentPreview(NSURL *url)
 {
     // Load template HTML
-	NSString *templateFile = [NSString stringWithContentsOfFile:[[NSBundle bundleWithIdentifier: @&quot;uk.co.dbrweb.qltorrent&quot;]
-										pathForResource:@&quot;torrentpreview&quot; ofType:@&quot;html&quot;]];
-	NSDictionary *torrentInfo = getTorrentInfo(url);
+    NSString *templateFile = [NSString stringWithContentsOfFile:[[NSBundle bundleWithIdentifier: @&quot;uk.co.dbrweb.qltorrent&quot;]
+                                        pathForResource:@&quot;torrentpreview&quot; ofType:@&quot;html&quot;]];
+    NSDictionary *torrentInfo = getTorrentInfo(url);
     NSMutableString *html = [NSMutableString stringWithString:templateFile];
 
     
@@ -109,7 +109,7 @@ NSData *getTorrentPreview(NSURL *url)
     replacer(html,
              @&quot;{TORRENT_NAME}&quot;,
              [torrentInfo objectForKey:@&quot;torrentName&quot;],
-			 @&quot;[Unknown]&quot;);
+             @&quot;[Unknown]&quot;);
 
     // Replace torrent size witht length or totalSize
     NSNumber *size;
@@ -124,37 +124,37 @@ NSData *getTorrentPreview(NSURL *url)
     replacer(html,
              @&quot;{TORRENT_INFO}&quot;,
              torrentInfoString,
-			 @&quot;[Unknown]&quot;);
+             @&quot;[Unknown]&quot;);
 
     // Replace files
     NSMutableArray *files = [torrentInfo objectForKey:@&quot;files&quot;];
     if(files != NULL)
-	{
-		NSMutableString *torrentFileString = [NSMutableString string];
-		for(int i = 0; i &lt; [files count]; i++)
-		{
-			NSMutableDictionary *currentFile = [files objectAtIndex:i];
-			NSString *currentName = [currentFile objectForKey:@&quot;filename&quot;];
-			NSString *currentSizeData = [currentFile objectForKey:@&quot;length&quot;];
-			NSString *currentSize;
-			if(currentSizeData == NULL){
-				currentSize = [NSString stringWithString:@&quot;N/a&quot;];
-			}
-			else
-			{
-				currentSize = [NSString stringWithString:stringFromFileSize([currentSizeData integerValue])];
-			}
-			[torrentFileString appendString:[NSString stringWithFormat: @&quot;&lt;tr&gt;&lt;td&gt;%@&lt;/td&gt;&lt;td&gt;%@&lt;/td&gt;&lt;/tr&gt;\n&quot;,
-											 currentName,
-											 currentSize]
-			 ];
-	   }
-		replacer(html,
+    {
+        NSMutableString *torrentFileString = [NSMutableString string];
+        for(int i = 0; i &lt; [files count]; i++)
+        {
+            NSMutableDictionary *currentFile = [files objectAtIndex:i];
+            NSString *currentName = [currentFile objectForKey:@&quot;filename&quot;];
+            NSString *currentSizeData = [currentFile objectForKey:@&quot;length&quot;];
+            NSString *currentSize;
+            if(currentSizeData == NULL){
+                currentSize = [NSString stringWithString:@&quot;N/a&quot;];
+            }
+            else
+            {
+                currentSize = [NSString stringWithString:stringFromFileSize([currentSizeData integerValue])];
+            }
+            [torrentFileString appendString:[NSString stringWithFormat: @&quot;&lt;tr&gt;&lt;td&gt;%@&lt;/td&gt;&lt;td&gt;%@&lt;/td&gt;&lt;/tr&gt;\n&quot;,
+                                             currentName,
+                                             currentSize]
+             ];
+       }
+        replacer(html,
                  @&quot;{TORRENT_FILES}&quot;,
                  torrentFileString,
                  @&quot;&lt;tr&gt;&lt;td&gt;[Cannot list files]&lt;/td&gt;&lt;td&gt;N/a&lt;/td&gt;&lt;/tr&gt;&quot;
                  );
-	}
+    }
 
     return [html dataUsingEncoding:NSUTF8StringEncoding];
 }</diff>
      <filename>torrent.m</filename>
    </modified>
    <modified>
      <diff>@@ -10,15 +10,15 @@
             padding:0;
         }
         html{
-    		background-color:rgb(11%,11%,11%);
+            background-color:rgb(11%,11%,11%);
             color:#ccc;
-    	}
-    	#title{
-    	    background:#111;
-    	    color:#666;
+        }
+        #title{
+            background:#111;
+            color:#666;
             padding-bottom:.2em;
             margin-bottom:1em;
-    	}
+        }
       #title #torrentname h2{
             line-height:1em;
             background:#000;
@@ -36,12 +36,12 @@
       #size{
             width:7em;
         }
-    	.odd{
-    	    background:#222;
-    	}
-    	.even{
-    	    background:#333;
-    	}
+        .odd{
+            background:#222;
+        }
+        .even{
+            background:#333;
+        }
     &lt;/style&gt;
     &lt;head&gt;
 &lt;body&gt;</diff>
      <filename>torrentpreview.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e275bebfc6d7add2df8e824a7b9cc51d31b9d485</id>
    </parent>
  </parents>
  <author>
    <name>dbr</name>
    <email>dbr.onix@gmail.com</email>
  </author>
  <url>http://github.com/dbr/qltorrent/commit/558ec9bc7c243e7b6488e0ddf00e7ffd34826afd</url>
  <id>558ec9bc7c243e7b6488e0ddf00e7ffd34826afd</id>
  <committed-date>2009-04-23T12:09:17-07:00</committed-date>
  <authored-date>2009-04-23T12:09:17-07:00</authored-date>
  <message>Tabs to spaces</message>
  <tree>222b1bb3015447fe1e7ffda317da50f33e95589e</tree>
  <committer>
    <name>dbr</name>
    <email>dbr.onix@gmail.com</email>
  </committer>
</commit>
