<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -10,18 +10,18 @@ It's inspired by a similar system present in the space trading game &quot;Elite&quot;.
 
 Simply send the message &quot;goatWithSubstitutions:&quot; to a template string, supplying an NSDictionary containing the substitution lists. e.g.:
 
-  NSDictionary *substitions = [NSDictionary dictionaryWithObjectsAndKeys:
-                               [NSArray arrayWithObjects:@&quot;fred&quot;, @&quot;george&quot;, @&quot;tom&quot;, nil], @&quot;name&quot;,
-                               [NSArray arrayWithObjects:@&quot;a {desc} trailer&quot;, @&quot;a slum&quot;, @&quot;a {desc} bungalow&quot;, nil], @&quot;location&quot;,
-                               [NSArray arrayWithObjects:@&quot;posh&quot;, @&quot;dilapidated&quot;, @&quot;substandard&quot;, nil], @&quot;desc&quot;,
-                               [NSArray arrayWithObjects:@&quot;a litter of kittens&quot;, @&quot;a trustworthy parrot&quot;, @&quot;friends&quot;, nil], @&quot;others&quot;, nil];
-  NSLog([@&quot;{name} lives in {location} with {others}&quot; goatWithSubstitutions:substitions]);
+    NSDictionary *substitions = [NSDictionary dictionaryWithObjectsAndKeys:
+                                 [NSArray arrayWithObjects:@&quot;fred&quot;, @&quot;george&quot;, @&quot;tom&quot;, nil], @&quot;name&quot;,
+                                 [NSArray arrayWithObjects:@&quot;a {desc} trailer&quot;, @&quot;a slum&quot;, @&quot;a {desc} bungalow&quot;, nil], @&quot;location&quot;,
+                                 [NSArray arrayWithObjects:@&quot;posh&quot;, @&quot;dilapidated&quot;, @&quot;substandard&quot;, nil], @&quot;desc&quot;,
+                                 [NSArray arrayWithObjects:@&quot;a litter of kittens&quot;, @&quot;a trustworthy parrot&quot;, @&quot;friends&quot;, nil], @&quot;others&quot;, nil];
+    NSLog([@&quot;{name} lives in {location} with {others}&quot; goatWithSubstitutions:substitions]);
 
 The generator will randomly select items from each substitution list used. So in the above case we can generate strings like:
 
-  george lives in a dilapidated bungalow with friends
-  fred lives in a dilapidated bungalow with a litter of kittens
-  tom lives in a posh bungalow with friends
+    george lives in a dilapidated bungalow with friends
+    fred lives in a dilapidated bungalow with a litter of kittens
+    tom lives in a posh bungalow with friends
 
 The substitution is recursive (as demonstrated by &quot;location&quot; above), so you can quite easily generate really long strings which somewhat make sense.
 
@@ -31,58 +31,58 @@ Yes indeed. You can also call functions in the substitution list.
 
 Simply prefix your substitution in the list with &quot;$&quot;, and instead of an NSArray point to an object &amp; selector with an NSInvocation. e.g:
 
-  NSMutableDictionary *substitions2 = [NSMutableDictionary dictionaryWithObjectsAndKeys:nameList, @&quot;name&quot;,
-                                       [NSArray arrayWithObjects:@&quot;nice&quot;, @&quot;disgusting&quot;, @&quot;beautiful&quot;, @&quot;horrible&quot;, nil], @&quot;adj&quot;,
-                                       [NSArray arrayWithObjects:@&quot;oceans&quot;, @&quot;forests&quot;, @&quot;ports&quot;, @&quot;markets&quot;, nil], @&quot;items&quot;, nil];
-  
-  // Add a function
-  SEL sel_func = @selector(randomNumber:subs:);
-  NSMethodSignature * sig = [[self class] instanceMethodSignatureForSelector:sel_func];
-  NSInvocation *func = [NSInvocation invocationWithMethodSignature:sig];
-  [func setTarget:self];
-  [func setSelector:sel_func];
-  [substitions2 setValue:func forKey:@&quot;$rnd&quot;];
-  
-  // And another
-  sel_func = @selector(capitalize:subs:);
-  sig = [[self class] instanceMethodSignatureForSelector:sel_func];
-  func = [NSInvocation invocationWithMethodSignature:sig];
-  [func setTarget:self];
-  [func setSelector:sel_func];
-  [substitions2 setValue:func forKey:@&quot;$cap&quot;];
-  
-  // Print something!
-  NSLog([@&quot;{$cap:{name}} is a {adj} planet with many {items}. Population: {$rnd:1000000}&quot; goatWithSubstitutions:substitions]);
-  
-  // ...
-  
-  // Actual Functions
-  - (NSString *)randomNumber:(NSArray*)params subs:(NSDictionary*)substitions
-  {
-    int range = [[params objectAtIndex:0] intValue];
-    return [NSString stringWithFormat:@&quot;%i&quot;, rand() % range];
-  }
-  
-  - (NSString *)capitalize:(NSArray*)params subs:(NSDictionary*)substitions
-  {
-    // Recursive capitalize
-    return [[[params objectAtIndex:0] goatWithSubstitutions:substitions] capitalizedString];
-  }
+    NSMutableDictionary *substitions2 = [NSMutableDictionary dictionaryWithObjectsAndKeys:nameList, @&quot;name&quot;,
+                                        [NSArray arrayWithObjects:@&quot;nice&quot;, @&quot;disgusting&quot;, @&quot;beautiful&quot;, @&quot;horrible&quot;, nil], @&quot;adj&quot;,
+                                        [NSArray arrayWithObjects:@&quot;oceans&quot;, @&quot;forests&quot;, @&quot;ports&quot;, @&quot;markets&quot;, nil], @&quot;items&quot;, nil];
+    
+    // Add a function
+    SEL sel_func = @selector(randomNumber:subs:);
+    NSMethodSignature * sig = [[self class] instanceMethodSignatureForSelector:sel_func];
+    NSInvocation *func = [NSInvocation invocationWithMethodSignature:sig];
+    [func setTarget:self];
+    [func setSelector:sel_func];
+    [substitions2 setValue:func forKey:@&quot;$rnd&quot;];
+    
+    // And another
+    sel_func = @selector(capitalize:subs:);
+    sig = [[self class] instanceMethodSignatureForSelector:sel_func];
+    func = [NSInvocation invocationWithMethodSignature:sig];
+    [func setTarget:self];
+    [func setSelector:sel_func];
+    [substitions2 setValue:func forKey:@&quot;$cap&quot;];
+    
+    // Print something!
+    NSLog([@&quot;{$cap:{name}} is a {adj} planet with many {items}. Population: {$rnd:1000000}&quot; goatWithSubstitutions:substitions]);
+    
+    // ...
+    
+    // Actual Functions
+    - (NSString *)randomNumber:(NSArray*)params subs:(NSDictionary*)substitions
+    {
+      int range = [[params objectAtIndex:0] intValue];
+      return [NSString stringWithFormat:@&quot;%i&quot;, rand() % range];
+    }
+    
+    - (NSString *)capitalize:(NSArray*)params subs:(NSDictionary*)substitions
+    {
+      // Recursive capitalize
+      return [[[params objectAtIndex:0] goatWithSubstitutions:substitions] capitalizedString];
+    }
 
 ## What about the names?
 
 Simply send the message &quot;goatNameWithRange:&quot;, supplying a minimum and maximum length of string to generate. e.g.:
 
-  NSString *goatName = @&quot;ABOUSEITILETSTONLONUTHNO&quot;; // character pairs
-  for (int i=0; i&lt;100; i++) {
-    NSString *name = [goatName goatNameWithRange:NSMakeRange(4, 6)];
-    NSLog(@&quot;Goat name: %@&quot;, name);
-  }
+    NSString *goatName = @&quot;ABOUSEITILETSTONLONUTHNO&quot;; // character pairs
+    for (int i=0; i&lt;100; i++) {
+      NSString *name = [goatName goatNameWithRange:NSMakeRange(4, 6)];
+      NSLog(@&quot;Goat name: %@&quot;, name);
+    }
 
 Which can generate names such as:
 
-  Goat name: LESE
-  Goat name: TSETUS
-  Goat name: USBOET
+    Goat name: LESE
+    Goat name: TSETUS
+    Goat name: USBOET
 
 Have fun!</diff>
      <filename>README.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>12b796ea9ab752c4c4f19d42c340f6236814267c</id>
    </parent>
  </parents>
  <author>
    <name>jamesu</name>
    <email>jamesu@gmail.com</email>
  </author>
  <url>http://github.com/jamesu/nsgoatstring/commit/c1733cabfd45420e3093186a59fdd5c2bcf52144</url>
  <id>c1733cabfd45420e3093186a59fdd5c2bcf52144</id>
  <committed-date>2009-06-01T14:22:58-07:00</committed-date>
  <authored-date>2009-06-01T14:22:58-07:00</authored-date>
  <message>Whoops, fix code syntax</message>
  <tree>62608d42d85a939ff26ac11c347ac1e931dc0c31</tree>
  <committer>
    <name>jamesu</name>
    <email>jamesu@gmail.com</email>
  </committer>
</commit>
