robertkrimen / godocdown

Format package documentation (godoc) as GitHub friendly Markdown
526 stars 56 forks source link

Strip tabs in "package doc-comment" #3

Closed metaleap closed 11 years ago

metaleap commented 11 years ago

I usually have all doc-comments formatted as slash-slash-tab-comment:

//  Doc goes here, after slash-slash-tab
//  
//  Another doc-comment line
package somepkg

This very first tab per line should not make it into the resulting mark-down output, so as to avoid "code formatting" for such comments. godocdown does strip this properly for funcs, types, methods, but not for the package clause, it seems?

Or maybe this is a go/doc issue, not sure..