cvs commit: src/usr.bin/indent indent.1 io.c
    Bruce Evans 
    bde at FreeBSD.org
       
    Thu Feb 12 08:25:13 PST 2004
    
    
  
bde         2004/02/12 08:25:12 PST
  FreeBSD src repository
  Modified files:
    usr.bin/indent       indent.1 io.c 
  Log:
  Only indent once for continuation lines when not lining up with
  parentheses if the continuation indent is exactly half of the main
  indent.  Indenting one contination indent for every level of
  parentheses gives bad results in most cases and is not what is done
  in about 90% of properly hand-formatted KNF code (sys/kern/*.c,
  nvi/common/*.c).  The main advantage of the non-default KNF options
  -nlp -ci4 is that continuation lines don't accidentally line up with
  the next main indentation level or march to the right, and increasing
  their indentation defeats this.
  
  This behaviour change is limited to when the continuation indent is
  exactly half of the main indent to avoid adding yet another option.
  
  Revision  Changes    Path
  1.17      +3 -2      src/usr.bin/indent/indent.1
  1.13      +2 -1      src/usr.bin/indent/io.c
    
    
More information about the cvs-all
mailing list