Obsessive-Compulsive Disorders
Thursday, February 27th, 2014 | Photos
I did not know whether to laugh or cry when Rich posted this.
I did not know whether to laugh or cry when Rich posted this.
If you’re like me, which seems unlikely as statistically you’re probably far more sensible, you’ll get really annoyed when the white spacing or indentation isn’t consistent within a file.
Because of this, I recently wrote a little Ruby script which would automatically clean up my CSS files and make them all nice and pretty. It’s now publicly available on Github if you want a copy.
At some point in the future I’m intending to do similar scripts for other file types – the SocietasPro codebase already has a similar system for PHP, though that only flags inconsistencies, it doesn’t correct them.