From b24735c74c4de69277cf2972c3f040d5cb9e0901 Mon Sep 17 00:00:00 2001 From: tjp Date: Mon, 8 Jan 2024 11:10:36 -0700 Subject: count link + prompt lines for gutter width --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index d89f27b..3c37086 100644 --- a/handlers.go +++ b/handlers.go @@ -132,7 +132,7 @@ func parseGemtextDoc(body []byte, softWrap int) (string, []Link, error) { links := 0 for _, item := range gemdoc { - if item.Type() == gemtext.LineTypeLink { + if item.Type() == gemtext.LineTypeLink || item.Type() == gemtext.LineTypePrompt { links += 1 } } -- cgit v1.2.3