• Robert Griesemer's avatar
    go/printer: replace multiline logic · b1b0ed1e
    Robert Griesemer authored
    This CL mostly deletes code.
    
    Using existing position information is
    just as good to determine if a new section
    is needed; no need to track exact multi-
    line information. Eliminates the need to
    carry around a multiLine parameter with
    practically every function.
    
    Applied gofmt -w src misc resulting in only
    a minor change to godoc.go. In return, a couple
    of test cases are now formatted better.
    
    Not Go1-required, but nice-to-have as it will
    simplify fixes going forward.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/5706055
    b1b0ed1e
godoc.go 44 KB