Re: [Webwork-devel] Newline setting
Brought to you by:
baldree,
rickardoberg
|
From: David W. <da...@su...> - 2001-12-13 15:06:14
|
Rickard, > Currently a large chunk of the codebase is screwed up, formatting wise. > The problem is mostly with newlines (i.e. UNIX vs Windows) and to some > extent tabs. > > Here are the rules: > * Use Windows newlines, i.e. \r\n CVS normally automatically fixes this. We have both linux and windows developers on common projects, each sees the appropriate line endings. You should be able to use what is natural for your system with me seeing just \ and you seeing both \r\n. Problems can arise if you check out on one OS and then edit on another or ad new windows files from linux (and I guess the otherway round as well). > * Use a tab setting of 3, expanding into *spaces*, not the tab character Are there some documented coding standards for the project? Are 4 spaces a major problem as all other projects I work on have that as their standard and it is a PITA remembering to change editor settings all the time - of course such a problem would only exist on a new file as all programmers keep to the existing style when editing existing files ;-) Regards Dave |