From 12ed73f9ff9de1a145683de8a73c170613371979 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 29 Jun 2026 01:41:49 -0400 Subject: wrap_width and table improvements, targeting 80 character default width --- internal/game/production_menu.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/production_menu.go') diff --git a/internal/game/production_menu.go b/internal/game/production_menu.go index f625d54..bc2fccc 100644 --- a/internal/game/production_menu.go +++ b/internal/game/production_menu.go @@ -169,7 +169,7 @@ func (g *Game) showProductionTable(sess *net.Session, p *player.Player, items [] unicode := p.OptionBool("unicode") sess.WriteLine("") - for _, line := range tbl.Render(unicode) { + for _, line := range tbl.Render(unicode, p.OptionInt("wrap_width")) { sess.WriteLine(line) } @@ -350,7 +350,7 @@ func (g *Game) showMenuTable(sess *net.Session, title string, names []string) { } unicode := p.OptionBool("unicode") sess.WriteLine("") - for _, line := range tbl.Render(unicode) { + for _, line := range tbl.Render(unicode, p.OptionInt("wrap_width")) { sess.WriteLine(line) } } -- cgit v1.2.3