From edf27f96cb3c72822b1c339fa27199d4c41a1218 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Wed, 19 Aug 2015 17:59:08 +0900 Subject: [PATCH] Final tweaks to converter --- vimdoc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimdoc.go b/vimdoc.go index 5e233aa..e3f3e8b 100644 --- a/vimdoc.go +++ b/vimdoc.go @@ -234,7 +234,7 @@ func (v *vimDoc) Header(out *bytes.Buffer, text func() bool, level int, id strin v.headings = append(v.headings, h) tag := fmt.Sprintf("*%s*", v.buildHelpTag(h.text)) - title := fmt.Sprintf("%s %s", v.buildChapters(h), bytes.ToUpper(h.text)) + title := fmt.Sprintf("%s", bytes.ToUpper(h.text)) v.writeSplitText(out, []byte(title), []byte(tag), " ", 2) out.WriteString("\n") } @@ -397,7 +397,7 @@ func (v *vimDoc) DocumentFooter(out *bytes.Buffer) { temp.Write(out.Bytes()[:v.tocPos]) v.writeRule(&temp, "=") - temp.WriteString("TABLE OF CONTENTS\n") + temp.WriteString("CONTENTS\n") temp.WriteString("\n") v.writeToc(&temp) temp.WriteString("\n")