[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] issue 1954 - v3

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-12-15 02:55:17 CET

VK Sameer wrote:
>>>+ return svn_error_createf (SVN_ERR_FS_PATH_SYNTAX, NULL,
>>>+ "Invalid control char. '%x' in path '%s'",
>>>+ *c,
>>>+ svn_path_local_style (path, pool));
[...]
> Done. It was there initially - got removed during vain attempts at
> staying within 72 cols.

A width of 72 columns is good for e-mail prose to allow for quoting in replies,
but up to 79 or maybe 80 is fine for source code.

Here are two other ways used in Subversion source code to reduce the column count.

Use the fact that adjacent strings are combined by the compiler, e.g.:

           return svn_error_createf (SVN_ERR_FS_PATH_SYNTAX, NULL,
                                     "Invalid control char. '%x' "
                                     "in path '%s'",
                                     *c,
                                     svn_path_local_style (path, pool));

Start the argument list on a new line (indented by 2 spaces):

           return svn_error_createf
             (SVN_ERR_FS_PATH_SYNTAX, NULL,
              "Invalid control char. '%x' in path '%s'",
              *c,
              svn_path_local_style (path, pool));

(Note that there is no comma after the "Invalid... '%x' " string here.)

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 15 02:56:32 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.