minor: correctly indent output
Google: support optional linkid