NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Occasionally 'fixes' indentation on lines I haven't edited


Joined: 02 Apr 2007
Posts: 7
Location: San Francisco, CA
Reply with quote
I've noticed that sometimes when I 'svn diff' my code before checking it in, indentation has been changed locally on lines in files I've opened but not edited, or in lines of files where I've made changes to other lines.

It's not whole files, either. I'll find maybe a few lines in a function near the one I was editing will have indentation changes. Here's an example:

Code:
@@ -140,12 +160,12 @@
 function db_device_instructions_step_update($step_id, $values)
 {
   $step_fields = array(
-      'device_id',
-      'step_number',
-      'step_headline',
-      'step_text',
+     'device_id',
+     'step_number',
+     'step_headline',
+     'step_text',
          'step_image_url',
-      );
+     );


I didn't edit that function, but I edited one elsewhere in the file and saved it.

Any idea why this might be happening?
View user's profileFind all posts by tabaccoSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Seems you have Optimal Fill turned on and when you saved the file some spaces were replaced with tabs giving the same indent according to "Spaces in Tabs" settings. SVN seems to have different setting for Spaces in Tabs. I'd recommend to turn Optimal Fill off.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Occasionally 'fixes' indentation on lines I haven't edited
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic