cat : add a leading hr block

This commit is contained in:
bth 2026-07-15 12:52:00 -07:00
commit 73cc9389df

View file

@ -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) {