cat : add a leading hr block
This commit is contained in:
parent
c7961b7555
commit
73cc9389df
1 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ func cat(files []string, opts options) (string, error) {
|
||||||
s := decapitate(string(dat), opts)
|
s := decapitate(string(dat), opts)
|
||||||
ff = append(ff, s)
|
ff = append(ff, s)
|
||||||
}
|
}
|
||||||
return strings.Join(ff, HR_BLOCK), nil
|
// NOTE: prepend leading HR_BLOCK, since these are used for section numbering in both online and print format:
|
||||||
|
return HR_BLOCK + strings.Join(ff, HR_BLOCK), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func Cat(args []string) {
|
func Cat(args []string) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue