• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stripping trailing whitespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stripping trailing whitespace


  • Subject: Re: Stripping trailing whitespace
  • From: David Frantz <email@hidden>
  • Date: Wed, 06 Jul 2011 03:43:12 -0400

I have one suggestion for you.  Create a Python or similar script to strip white space and then add of to the project and execute it with a build phase.

I did some Python scripting in a project awhile back to create a plist.   It worked out well.   There are likely other ways to do this but in my case this approach worked well.

I would imagine that with a bit of effort you could find a script or utility on the net to so this.

Sent from my iPhone

On Jul 5, 2011, at 12:58 PM, Jens Alfke <email@hidden> wrote:

> While I personally couldn’t care less about trailing whitespace in source lines, various tools [git] and coding guidelines [Google] have issues with it, so for their sake I’d like to strip it.
>
> In Xcode 3 I used the Google Toolkit For Mac [GTM] Xcode plugin, one of whose features was to automatically strip whitespace before saving a file. In Xcode 4 I thought I remembered hearing that the editor would have a pref to do this, but I can’t find one. And the script menu doesn’t seem to exist any more, so I can’t write a user script to do it. Anyone got any good tips for this?
>
> —Jens _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Stripping trailing whitespace
      • From: Dave MacLachlan <email@hidden>
References: 
 >Stripping trailing whitespace (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Can't run on provisioned device
  • Next by Date: Re: Instruments not working in XCode 4.0.2
  • Previous by thread: Re: Stripping trailing whitespace
  • Next by thread: Re: Stripping trailing whitespace
  • Index(es):
    • Date
    • Thread