Tweak template output whitespace around descriptions

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2014-12-30 20:15:02 -08:00
parent 80816100e2
commit 977373912c

View File

@ -693,8 +693,8 @@ The error codes encountered via the API are enumerated in the following table:
{{.Description}} {{.Description}}
{{if .Requests}}{{range .Requests}} {{if .Requests}}{{range .Requests}}{{if .Name}}
##### {{.Name}} ##### {{.Name}}{{end}}
``` ```
{{$method.Method}} {{$route.Path|prettygorilla}}{{if .QueryParameters}}?{{range .QueryParameters}}{{.Name}}={{.Format}}{{end}}{{end}}{{range .Headers}} {{$method.Method}} {{$route.Path|prettygorilla}}{{if .QueryParameters}}?{{range .QueryParameters}}{{.Name}}={{.Format}}{{end}}{{end}}{{range .Headers}}
@ -728,8 +728,9 @@ Content-Type: {{.Body.ContentType}}{{end}}{{if .Body.Format}}
{{.Body.Format}}{{end}} {{.Body.Format}}{{end}}
``` ```
{{.Description}}{{if .Headers}} {{.Description}}
The following headers will be returned on the response:
{{if .Headers}}The following headers will be returned with the response:
|Name|Description| |Name|Description|
|----|-----------| |----|-----------|