diff options
| author | tjp <tjp@ctrl-c.club> | 2024-01-08 11:10:36 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-01-08 11:10:36 -0700 |
| commit | b24735c74c4de69277cf2972c3f040d5cb9e0901 (patch) | |
| tree | faee9f1369263dd559c739db8eab39117926716a | |
| parent | a90327bcc0f46171e30a4a549fb5b44f8e91e303 (diff) | |
count link + prompt lines for gutter width
| -rw-r--r-- | handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |
