ref: d3302587f09fd514d17c8970df379660f20d93b7
parent: 142125c8097691417dd06ad2eefde73ce12a7c81
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) {--
⑨