The International Simutrans Forum

 

Author Topic: Remove trailing whitespace  (Read 514 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 259
Remove trailing whitespace
« on: March 17, 2020, 08:05:48 AM »
This patch removes trailing whitespace from source files. I used the following command:
Code: [Select]
find . -type f -name "*.h" -o -name "*.cc" | grep -v "squirrel" | xargs sed -i -e "s/[ \t]*$//"

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 10677
  • Languages: De,EN,JP
Re: Remove trailing whitespace
« Reply #1 on: March 17, 2020, 01:50:16 PM »
We had once a trailing whitespace check s a hook in svn. Maybe I should add it again.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4878
  • Languages: EN, DE, AT
Re: Remove trailing whitespace
« Reply #2 on: March 29, 2020, 10:23:15 AM »
thanks, in rr8995