shithub: hell

Download patch

ref: 599e772a2db508d33a93f347802d917f6b9d4e06
parent: a6a992e09b31f9ef1b9b2e9bf21b23ac007621c9
author: penny <penny@limitedideas.org>
date: Sun Oct 5 16:03:38 EDT 2025

fix page rendering

--- a/pages.go
+++ b/pages.go
@@ -157,7 +157,7 @@
 		fmt.Printf("Couldn't load status page: %s\n", err)
 	}
 	for i := range statuses {
-		item := makePageItem(statusData.hc.renderAndIncrement(statusData.hc.ctxref, statuses[i]) + "\n")
+		item := makePageItem(statusData.hc.renderAndIncrement(statusData.hc.ctxref, statuses[i]))
 		itemArray = append(itemArray, item)
 	}
 	return &itemArray
--- a/references.go
+++ b/references.go
@@ -41,10 +41,9 @@
 
 func (hc *Hellclient) renderAndIncrement(ref *postref, post *mastodon.Status) string {
 	post, plaintext := hc.RenderPostPlaintext(post, *ref)
-	fmt.Print(plaintext)
 	IncrementRef(ref, post)
 	ref.ref = IncrementString(ref.ref)
-	return plaintext
+	return hyphenate(plaintext)
 }
 
 func printAndIncrementDetailed(ref *postref, post *mastodon.Status, format func(*mastodon.Status, string) string) {
--