After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357244 - Fix white space bugs
Fix white space bugs
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
0.15
Other Linux
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-22 21:24 UTC by Xavier Claessens
Modified: 2006-10-06 20:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a python script to redo the indentation (714 bytes, text/x-python)
2006-09-22 21:25 UTC, Xavier Claessens
Details
more automated (1.26 KB, text/x-python)
2006-09-23 10:10 UTC, Xavier Claessens
Details
spaces before a tab are invisible (1.27 KB, text/x-python)
2006-09-23 13:43 UTC, Xavier Claessens
Details

Description Xavier Claessens 2006-09-22 21:24:10 UTC
There is lots of white space bugs that can be solved with a little script.
Comment 1 Xavier Claessens 2006-09-22 21:25:43 UTC
Created attachment 73248 [details]
a python script to redo the indentation

This script replace 8 spaces for indentation by a tab and removes white spaces in the end of lines.
Comment 2 Xavier Claessens 2006-09-22 21:31:06 UTC
Hum the patch generated thanks to the script is ~36000 lines long and takes 1M. Bugzilla refuse to attach that kind of files... I uploaded it there:

http://users.skynet.be/Zdra/gossip-indent.patch
Comment 3 Richard Hult 2006-09-23 09:15:48 UTC
This is not really "handleable" with patches, they get out of sync too quickly (already doesn't apply anymore). Committing this now will probably break the outstanding patches too... like the account changes.

It's better to handle this kind of thing when things are slow or on a per-file basis when doing other changes. Emacs can do it, that's what I usually use.

Maybe you can redo the patch after the account patch has been committed? And after that we should try to keep the whitespace consistent.
Comment 4 Xavier Claessens 2006-09-23 10:10:39 UTC
Created attachment 73262 [details]
more automated

Here is an improved script. It does the same but automatically redo all files of gossip. Just start the script in gossip's root directory and commit the changes. 

Like that you can commit this big change when there is no patch pending on bugzilla.
Comment 5 Martyn Russell 2006-09-23 10:17:10 UTC
Nice scripts. 


Richard is right, it would break outstanding patches. We can perhaps use this
later when we have less patches waiting to go in to CVS.

Xavier, this script looks quite handy. I am planning on releasing a python script I have been writing to handle maintainer operations, i.e. getting a list of bug fixes from the ChangeLog and getting their summary from Bugzilla (and using that to produce the mail we send out). Would you be ok with me using this python code? This seems like another maintainer-type tool which could be useful.
Comment 6 Xavier Claessens 2006-09-23 10:48:24 UTC
Martyn > of course you do what you want with this script. Consider it under GPL ;-)
Comment 7 Xavier Claessens 2006-09-23 13:43:56 UTC
Created attachment 73274 [details]
spaces before a tab are invisible

If there is less than 8 spaces before a tab those spaces are invisible and should be added.
Comment 8 Richard Hult 2006-09-23 16:57:06 UTC
Ah nice! I was going to ask if you could make it run over all the files :D
Comment 9 Eitan Isaacson 2006-09-30 02:27:23 UTC
Martyn, did you just use this script and make a big commit?
It's going to make merging changes from HEAD into the TELEPATHY branch a bit harder. Oh well :P
We won't have to go through many more of those anyway.
Comment 10 Richard Hult 2006-09-30 10:11:27 UTC
Closelyose.