Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.055 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'python': 0.08; 'advice?': 0.09; 'useful,': 0.15; 'cleans': 0.16; 'looked': 0.16; 'thanks,': 0.18; 'possibly': 0.19; 'script.': 0.29; "can't": 0.32; 'message- id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr :python-list': 0.34; 'anything': 0.34; 'function.': 0.34; 'but': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'received:10.0.0': 0.38; 'non': 0.38; 'to:addr:python.org': 0.40; 'andrea': 0.84; 'hook': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=sUx08zMWt3wyWs2SHVzj1IH8YM2k5rdGjeYiZoqllH0=; b=f/+ndClWyFKyXlgoMZYAPmuXQeKFNSVcai3OX5hF4LsKvXCWp+nwZIHKRnbKmKys8z NmzBL0BIcazONBLVpI2VDmUXSnMGZdKZTMRhfeMfx49RjuBozYsIydM9eRs0ZCMphoUu 0dqQtLBkts4NByzob+HXblZXjrPb5P6dzsM9s= Date: Tue, 06 Dec 2011 11:28:08 +0000 From: Andrea Crotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111108 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: whitespace cleanup Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323170894 news.xs4all.nl 6981 [2001:888:2000:d::a6]:37985 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16718 Now on Emacs I have a hook before every save that cleans up all the "wrong" white spaces, with the 'whitespace-cleanup' function. I would like that also for my non emacsers colleagues, and possibly with a Python script. I looked up around but I can't find anything useful, any advice? Thanks, Andrea