Commit 4c8fe766 authored by Robert Griesemer's avatar Robert Griesemer

- some fine-tuning of godoc templates per r's suggestion

- removed gratuitous newline in go/printer

R=r
DELTA=15  (2 added, 13 deleted, 0 changed)
OCL=30358
CL=30358
parent 536c2aa6
......@@ -19,9 +19,7 @@ import "{ImportPath}"
CONSTANTS
{.repeated section @}
{# the .repeated section, .section idiom skips over nils in the array}
{Decl}
{Doc}
{.end}
{.end}
......@@ -29,9 +27,7 @@ CONSTANTS
VARIABLES
{.repeated section @}
{Decl}
{Doc}
{.end}
{.end}
......@@ -39,9 +35,7 @@ VARIABLES
FUNCTIONS
{.repeated section @}
{Decl}
{Doc}
{.end}
{.end}
......@@ -49,20 +43,14 @@ FUNCTIONS
TYPES
{.repeated section @}
{Decl}
{Doc}
{.repeated section Factories}
{Decl}
{Doc}
{.end}
{.repeated section Methods}
{Decl}
{Doc}
{.end}
{.end}
......
......@@ -981,6 +981,8 @@ func (p *printer) program(prog *ast.Program) {
}
}
}
p.print(newline);
}
......@@ -1010,7 +1012,6 @@ func Fprint(output io.Writer, node interface{}, mode uint) (int, os.Error) {
default:
p.errors <- os.NewError("unsupported node type");
}
p.print(newline);
p.errors <- nil; // no errors
}();
err := <-p.errors; // wait for completion of goroutine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment