spec: Fix indentation and remove trailing white space characters.

LGTM=gri
R=golang-codereviews, bradfitz, gri
CC=golang-codereviews
https://codereview.appspot.com/133330043

Committer: Robert Griesemer <gri@golang.org>
go/doc/headscan: update script to count headings with an ID attribute

Fixes script used to sanity-check the heading-detection heuristic of go/doc.
Fixes issue 8467.

LGTM=gri
R=golang-codereviews, gobot, gri
CC=golang-codereviews
https://codereview.appspot.com/128720043

Committer: Robert Griesemer <gri@golang.org>