From 639e516b9e244bcf81b3ec3ee9a22cc1d845202a Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 9 Aug 2015 14:42:25 +0900 Subject: [PATCH] Improvements --- vimdoc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vimdoc.go b/vimdoc.go index ac319de..23d01f0 100644 --- a/vimdoc.go +++ b/vimdoc.go @@ -122,7 +122,7 @@ func (v *vimDoc) buildTag(header []byte) []byte { header = bytes.ToLower(header) header = bytes.Replace(header, []byte{' '}, []byte{'_'}, -1) } else { - header = bytes.ToTitle(header) + header = bytes.Title(header) header = bytes.Replace(header, []byte{' '}, []byte{}, -1) } @@ -390,6 +390,8 @@ func (v *vimDoc) DocumentHeader(out *bytes.Buffer) { out.WriteString(v.filename) out.WriteString("\n") } + + out.WriteString("\n") } func (v *vimDoc) DocumentFooter(out *bytes.Buffer) {