Index: auto_username.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/auto_username/auto_username.module,v
retrieving revision 1.5
diff -u -p -r1.5 auto_username.module
--- auto_username.module	11 Apr 2008 15:53:05 -0000	1.5
+++ auto_username.module	11 Apr 2008 19:29:36 -0000
@@ -1,6 +1,7 @@
 <?php
 // $Id $
 
+
 define('AUN_PUNCTUATION_REMOVE', 0);
 define('AUN_PUNCTUATION_REPLACE', 1);
 define('AUN_PUNCTUATION_DO_NOTHING', 2);
@@ -130,23 +131,24 @@ function auto_username_user($op, &$edit,
       if ($error = user_validate_name($new_name)) {
         form_set_error('name', $error);
       }
-      
+
       // Add a serial to the name for uniqueness.
       $counter = 1;
       $base_name = $new_name;
       while (db_result(db_query("SELECT COUNT(uid) FROM {users} WHERE uid != %d AND LOWER(name) = LOWER('%s')", $account->uid, $new_name)) > 0) {
         $new_name = $base_name . $counter++;
       }
-      
+
       // Save to the session so that we can grab it in the form submit handler
       // later.  Yes, we could use a global instead, but then we'd be using
       // globals!
       $_SESSION['auto_username']['new_name'] = $new_name;
-      
       break;
+
     case 'insert':
       db_query("UPDATE {users} SET name='%s' WHERE uid=%d", array($new_name, $account->uid));
       break;
+
     case 'after_update':
       // Only process on update if we're configured to do so.
       // We have to use after_update here instead of the 'update' op because
@@ -271,6 +273,7 @@ function auto_username_cleanstring($stri
   }
   */
 
+
   // Replace whitespace with a separator.
   if (variable_get('aun_replace_whitespace', 0)) {
     $output = preg_replace("/\s+/", $separator, $output);
@@ -312,7 +315,7 @@ function auto_username_form_alter($form_
       '#type' => 'value',
       '#value' => user_password(10),
     );
-    
+
     // Swap in our own submit handler so that we can override the username.
     unset($form['#submit']['user_register_submit']);
     $form['#submit']['auto_username_user_register_submit'] = array();
@@ -331,7 +334,7 @@ function auto_username_form_alter($form_
 
 /**
  * Submit handler for the user regsitration form.
- * 
+ *
  * We need to override the submit handler so that we can change the username
  * before the welcome email gets sent out.  Unfortunately the email gets sent
  * directly from the form submit handler.  Argl.
@@ -341,16 +344,16 @@ function auto_username_user_register_sub
 
   $form_values['name'] = $_SESSION['auto_username']['new_name'];
   unset($_SESSION['auto_username']['new_name']);
-  
+
   return user_register_submit($form_id, $form_values);
 }
 
 /**
  * Returns an array of arrays for punctuation values keyed by a name.
- * 
+ *
  * Including the value and a textual description
  * Can and should be expanded to include "all" non text punctuation values
- * 
+ *
  * This method is ripped verbatim from pathauto, until this functionality can
  * be pushed down into token.module.
  */
