From 54e492c21cde0459b0c3f94c4954ec2704ad3868 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Wed, 31 Jan 2024 16:22:13 +0100 Subject: [PATCH] fix plaintext --- heffalump/heffalump.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/heffalump/heffalump.go b/heffalump/heffalump.go index b161e09..513aa44 100644 --- a/heffalump/heffalump.go +++ b/heffalump/heffalump.go @@ -65,6 +65,9 @@ func (h *Heffalump) WriteHell(bw *bufio.Writer, cType ContentType) (int64, error switch cType { case PlainText: + if _, err = bw.WriteString("# Chapter 1\n"); err != nil { + return n, err + } break case HTML: if _, err = bw.WriteString("\n\n"); err != nil {