]> Cypherpunks repositories - gostls13.git/commit
- fine-tuning of white space
authorRobert Griesemer <gri@golang.org>
Wed, 3 Dec 2008 00:49:44 +0000 (16:49 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 3 Dec 2008 00:49:44 +0000 (16:49 -0800)
commitcb67a8324bbdffcb5e8a8a6caa8dbb400d0dc7a8
tree7ff2640e138d1780416e2ff9ad6b53c2fc14db7c
parent1e1a3c50544485434bcd987b6a4a4ac237bf8417
- 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
usr/gri/pretty/printer.go
usr/gri/pretty/selftest2.go