Arved Sandstrom wrote:
> At 09:26 PM 7/16/01 +1000, Mark wrote:
>
>>As an aside: is there a style guide for FOP code? I must say I find the
>>style and layout very confusing and I'm happy to clean things up as I go.
>>At the moment I can't even work out what tab stop size people are using.
>>(In my own work I use 8 character tabs with 2 character indenting).
>>
>
> Yep. http://xml.apache.org/source.html references the Sun Java coding
> conventions, at http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html.
>
> An interesting point that comes out of the coding conventions is that while
> Sun instructs us that tabs must be 8 spaces, they also state that the unit
> of indentation is 4 spaces.
>
> Seems to me that the easiest way to avoid problems is never to leave tabs in
> the code - I use a text editor that is set to 4 spaces per tab and
> immediately translates tabs to spaces.
>
> We are well past the point where we should take a style tool to the whole
> codebase, strip out all tabs, and re-commit the whole thing. :-)
Arved,
Agreed. From my own point of view, it would also be nice if, once the
cleanup were done, committers could gradually re-arrange code to fit on
an 79 column page (1 column is sacrificed to (X)Emacs.) I appreciate
that this is kind of old fashioned, but more often than not, I work with
multiple 80 column windows rather than a full-screen editor.
Peter
--
Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]