From 65d9e6ca4ffeade27b3118002fd077a7808a164c Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 27 Aug 2013 20:25:21 +0800 Subject: [PATCH] Updated --- doc/walker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/walker.go b/doc/walker.go index 9b652c54c..95ecb5aa9 100644 --- a/doc/walker.go +++ b/doc/walker.go @@ -154,6 +154,9 @@ func (w *walker) build(srcs []*source, nod *Node) ([]string, error) { pdoc := doc.New(apkg, w.ImportPath, mode) nod.Synopsis = Synopsis(pdoc.Doc) + if i := strings.Index(nod.Synopsis, "\n"); i > -1 { + nod.Synopsis = nod.Synopsis[:i] + } return imports, err }