From 73cc9389dfdc9c6a3e684f0c58c43c07242b3eaf Mon Sep 17 00:00:00 2001 From: bth Date: Wed, 15 Jul 2026 12:52:00 -0700 Subject: [PATCH] cat : add a leading hr block --- cat/cat.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cat/cat.go b/cat/cat.go index 189dd5f..cf4e556 100644 --- a/cat/cat.go +++ b/cat/cat.go @@ -78,7 +78,8 @@ func cat(files []string, opts options) (string, error) { s := decapitate(string(dat), opts) 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) {