1
0
mirror of https://github.com/golang/go synced 2024-11-26 05:07:59 -07:00
go/usr/gri
Robert Griesemer cb67a8324b - fine-tuning of white space
- by default consider extra newlines in src for better formatting
- additional flags for control (-newlines, -maxnewlines, -optsemicolons)
- don't print ()'s around single anonymous result types

Status: Comparing the output of pretty with the input for larger files
shows mostly whitespace/formatting differences, which is what is desired.

TODO:
- Handling of overlong lines
- some esoteric cases which look funny

R=r
OCL=20293
CL=20293
2008-12-02 16:49:44 -08:00
..
gosrc - removed double-declaration of len() 2008-10-20 12:51:18 -07:00
pretty - fine-tuning of white space 2008-12-02 16:49:44 -08:00