Stuart Henderson wrote:
> On 2015/01/23 16:50, Jim Smith wrote:
> > doesn't look like the 80 column rule is mentioned in
> > style(9). this diff puts the sentence around the same place
> > as osx's style(9) as it was the only example i could find
> > and it seems like a reasonable place.
>
> oh, is that really not mentioned? I think that makes sense. any objections?
Maybe also clarify whether the trailing newline counts as a character?
I'd say it does because otherwise Emacs and vi in line mode still wrap
to the next screen line.
Index: style.9
===================================================================
RCS file: /cvs/src/share/man/man9/style.9,v
retrieving revision 1.58
diff -u -r1.58 style.9
--- style.9 1 Jun 2014 15:44:09 -0000 1.58
+++ style.9 23 Jan 2015 20:38:38 -0000
@@ -325,6 +325,7 @@
.Pp
Indentation is an 8 character tab.
Second level indents are four spaces.
+All code should fit in 80 columns, trailing newline included.
.Bd -literal -offset indent
while (cnt < 20)
z = a + really + long + statement + that + needs +
--
Simon Nicolussi <[email protected]>
http{s,}://{www.,}sinic.name/