Jump to content


Whitespaces added to scripts

unity3d programming whitespace

  • Please log in to reply
2 replies to this topic

#1 aditya_tfg

aditya_tfg

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 26 May 2016 - 09:50 AM

Hi,

After submitting scripts, when opened on different client machine, a lot of white spaces are added in some of the scripts.
I don't know what is causing this. It doesn't affect the code or working of script, but only code formatting.
Too many extra empty lines are too irritating to work with.
Any suggestion to avoid this would be a great help.

Thanks
Aditya

#2 TSEGordon

TSEGordon

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 14 July 2016 - 10:52 AM

I've also seen this, but I was thinking it as a Mac->PC (and vice versa) issue, so I hadn't been blaming it on P4Connect. Maybe there's a Perforce setting we need to look at?

#3 Tubah

Tubah

    Advanced Member

  • Staff
  • 46 posts

Posted 19 July 2016 - 04:28 PM

Check your versions and the file's perforce type.  There was a bug where type 'utf8' files, submitted with a <=15.1 client on windows, to an early 2015.2 server, would introduce extra CR into the file.





Also tagged with one or more of these keywords: unity3d, programming, whitespace

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users