ref: b7418bb456d9a1efd87c7890289ba04c74e578bb
parent: 4d18579f8c4bfe20dbd00aed0e370b4e7f1961ac
author: penny <penny@limitedideas.org>
date: Sun Oct 19 22:17:36 EDT 2025
set default hyphenation to 80
--- a/format.go
+++ b/format.go
@@ -7,7 +7,12 @@
)
func hyphenate(input string) (string, bool) {- width, _, _ := term.GetSize(int(0))
+ width, _, err := term.GetSize(int(0))
+ if err != nil {+ //Use generic width
+ //Maybe make this a config later
+ width = 80
+ }
return hyphenateWithWidth(input, width)
}
--- a/mastodon.go
+++ b/mastodon.go
@@ -184,7 +184,7 @@
}
func printMastodonErr(err error) {- fmt.Printf("\r%v\n", err)+ fmt.Printf("%v\n", err)}
func (hc *Hellclient) RenderPostPlaintext(post *mastodon.Status, ref postref) (selectedPost *mastodon.Status, plaintext string) {--
⑨