Final tweaks to converter
This commit is contained in:
parent
2ae4885064
commit
edf27f96cb
@ -234,7 +234,7 @@ func (v *vimDoc) Header(out *bytes.Buffer, text func() bool, level int, id strin
|
|||||||
v.headings = append(v.headings, h)
|
v.headings = append(v.headings, h)
|
||||||
|
|
||||||
tag := fmt.Sprintf("*%s*", v.buildHelpTag(h.text))
|
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)
|
v.writeSplitText(out, []byte(title), []byte(tag), " ", 2)
|
||||||
out.WriteString("\n")
|
out.WriteString("\n")
|
||||||
}
|
}
|
||||||
@ -397,7 +397,7 @@ func (v *vimDoc) DocumentFooter(out *bytes.Buffer) {
|
|||||||
temp.Write(out.Bytes()[:v.tocPos])
|
temp.Write(out.Bytes()[:v.tocPos])
|
||||||
|
|
||||||
v.writeRule(&temp, "=")
|
v.writeRule(&temp, "=")
|
||||||
temp.WriteString("TABLE OF CONTENTS\n")
|
temp.WriteString("CONTENTS\n")
|
||||||
temp.WriteString("\n")
|
temp.WriteString("\n")
|
||||||
v.writeToc(&temp)
|
v.writeToc(&temp)
|
||||||
temp.WriteString("\n")
|
temp.WriteString("\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user