Skip void return types in "document function" helper.
Also trim empty lines to reduce whitespace noise.
BUG: 354710