From fa55885c8cdf401ac90b39af7f3b06a375e4402e Mon Sep 17 00:00:00 2001 From: bashbunni Date: Mon, 2 Dec 2024 10:53:25 -0800 Subject: [PATCH] docs: add additional info on Width behaviour --- set.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/set.go b/set.go index ed6e272c..5785acae 100644 --- a/set.go +++ b/set.go @@ -223,8 +223,9 @@ func (s Style) Background(c TerminalColor) Style { return s } -// Width sets the width of the block before applying margins. The width, if -// set, also determines where text will wrap. +// Width sets the width of the block before applying margins. This means your +// styled content will exactly equal the size set here. Text will wrap based on +// Padding and Borders set on the style. func (s Style) Width(i int) Style { s.set(widthKey, i) return s