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}" ...@@ -19,9 +19,7 @@ import "{ImportPath}"
CONSTANTS CONSTANTS
{.repeated section @} {.repeated section @}
{# the .repeated section, .section idiom skips over nils in the array} {# the .repeated section, .section idiom skips over nils in the array}
{Decl} {Decl}
{Doc} {Doc}
{.end} {.end}
{.end} {.end}
...@@ -29,9 +27,7 @@ CONSTANTS ...@@ -29,9 +27,7 @@ CONSTANTS
VARIABLES VARIABLES
{.repeated section @} {.repeated section @}
{Decl} {Decl}
{Doc} {Doc}
{.end} {.end}
{.end} {.end}
...@@ -39,9 +35,7 @@ VARIABLES ...@@ -39,9 +35,7 @@ VARIABLES
FUNCTIONS FUNCTIONS
{.repeated section @} {.repeated section @}
{Decl} {Decl}
{Doc} {Doc}
{.end} {.end}
{.end} {.end}
...@@ -49,20 +43,14 @@ FUNCTIONS ...@@ -49,20 +43,14 @@ FUNCTIONS
TYPES TYPES
{.repeated section @} {.repeated section @}
{Decl} {Decl}
{Doc} {Doc}
{.repeated section Factories} {.repeated section Factories}
{Decl} {Decl}
{Doc} {Doc}
{.end} {.end}
{.repeated section Methods} {.repeated section Methods}
{Decl} {Decl}
{Doc} {Doc}
{.end} {.end}
{.end} {.end}
......
...@@ -981,6 +981,8 @@ func (p *printer) program(prog *ast.Program) { ...@@ -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) { ...@@ -1010,7 +1012,6 @@ func Fprint(output io.Writer, node interface{}, mode uint) (int, os.Error) {
default: default:
p.errors <- os.NewError("unsupported node type"); p.errors <- os.NewError("unsupported node type");
} }
p.print(newline);
p.errors <- nil; // no errors p.errors <- nil; // no errors
}(); }();
err := <-p.errors; // wait for completion of goroutine 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