Improvements
This commit is contained in:
parent
a2eed618e3
commit
639e516b9e
@ -122,7 +122,7 @@ func (v *vimDoc) buildTag(header []byte) []byte {
|
|||||||
header = bytes.ToLower(header)
|
header = bytes.ToLower(header)
|
||||||
header = bytes.Replace(header, []byte{' '}, []byte{'_'}, -1)
|
header = bytes.Replace(header, []byte{' '}, []byte{'_'}, -1)
|
||||||
} else {
|
} else {
|
||||||
header = bytes.ToTitle(header)
|
header = bytes.Title(header)
|
||||||
header = bytes.Replace(header, []byte{' '}, []byte{}, -1)
|
header = bytes.Replace(header, []byte{' '}, []byte{}, -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,6 +390,8 @@ func (v *vimDoc) DocumentHeader(out *bytes.Buffer) {
|
|||||||
out.WriteString(v.filename)
|
out.WriteString(v.filename)
|
||||||
out.WriteString("\n")
|
out.WriteString("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out.WriteString("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *vimDoc) DocumentFooter(out *bytes.Buffer) {
|
func (v *vimDoc) DocumentFooter(out *bytes.Buffer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user