flaneur2020 / fleurix

an unix-like toy os kernel
BSD 3-Clause "New" or "Revised" License
286 stars 60 forks source link

Delete trailing whitespace #13

Closed xuchunyang closed 10 years ago

xuchunyang commented 10 years ago

The following command is used to accomplish this:

git ls-files | xargs sed -i '' -e's/[[:space:]]*$//'

the sed here is BSD version (I'm using a Mac), but it is supposed to work well with GNU version.

I think getting rid of trailing whitespace is a good practice and it is very easy to be done since many text editors has this built-in feature.