Re: Subversion Repository for Euphoria
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Nov 27, 2006
- 564 views
Matt wrote[1]: >Random whitespace mods foul up the repository. Oh yes, these things save diffs rather than complete copies, and this sort of thing could make each diff larger than (old+new), or at the very least save complete copies, which it won't like much either. Just for your info there are known problems with Edita in this area: As you probably know, Edita has a "Replace tabs with spaces" option; when this is checked, Edita should't write any tab (#09) characters to file, instead replace them with spaces up to the next multiple of the Tab Width setting (which defaults to 4). Loading a file automatically converts multiple spaces back to tabs appropriate for the tab width setting, for the duration of the edit. HOWEVER: When this option is not checked, Edita saves tabs as-is. It is sortof on my to-do list that Edita should write (and read) tab chars as if Tab Width=8, converting to your personal preference on-the-fly. I know that Edita loads eg the original database.e all wrong, ie:
....if x then \tdoSomething()
ends up (when Tab Width=4) as:
\tif x then \tdoSomething()
(Yuk!) when, of course, it should be:
\tif x then \t\tdoSomething()
and, obviously, get saved back just as it was found. I also know that a unilateral change on my part may well cause all manner of wailing and gnashing of teeth. I'm dithering, but I suppose I should just do it, and have some sort of "Re-load this file wot was saved (tab-wrongly) with Edita-pre-0.3.0" option, and/or rely on the (new) re-indent function coming to the rescue. In the end, I think this has become more of a political than technical thing for me. I suppose the other thing I can do is announce the planned change (HEY! Everyone using EDITA, Listen Up!) and get everyone to check that "Replace Tabs with Spaces" option now (if Tab Width != 8), to reduce discomfort next release. Anyway, what I am saying is that as things stand, anyone thinking of using Edita to modify repository files should either make sure to save as spaces (if acceptable) or set their tab width to 8, this should be carefully tested and a LOUD warning put somewhere based on the results. Same deal may apply to other popular editors, just thought I'd better explain the current situation with Edita. Regards, Pete [1] I might be paraphrasing or otherwise slightly mis-quoting there as I deleted the post before deciding to reply.