Skip to content

Commit 567ca0e

Browse files
committed
Mimic go doc behaviour
1 parent 84f6c16 commit 567ca0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parse/parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func Package(path string, files []string) (*PkgInfo, error) {
247247
pi := &PkgInfo{
248248
AstPkg: pkg,
249249
DocPkg: p,
250-
Description: p.Doc,
250+
Description: string(p.Text(p.Doc)),
251251
}
252252

253253
setNamespaces(pi)

0 commit comments

Comments
 (0)