From ebb02791f219f14b4b377a58aadeea739e9f6e12 Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Sun, 22 Jul 2001 10:35:02 +0000 Subject: [PATCH] Add: ``If you have to wrap a long statement, put the operator at the end of the line.'' Reviewed by: alfred, bde --- share/man/man9/style.9 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 9696f5c33064..388700463c68 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -339,8 +339,11 @@ inside blocks unless the routine is unusually complicated. .Pp Indentation is an 8 character tab. Second level indents are four spaces. +If you have to wrap a long statement, put the operator at the end of the +line. .Bd -literal - while (cnt < 20) + while (cnt < 20 && this_variable_name_is_too_long_for_its_own_good && + ep != NULL) z = a + really + long + statement + that + needs + two lines + gets + indented + four + spaces + on + the + second + and + subsequent + lines;