MCPcopy Index your code
hub / github.com/box-cli-maker/box-cli-maker / WrapLimit

Method WrapLimit

box.go:213–217  ·  view source on GitHub ↗

WrapLimit enables wrapping and sets an explicit maximum width for content.

(limit int)

Source from the content-addressed store, hash-verified

211
212// WrapLimit enables wrapping and sets an explicit maximum width for content.
213func (b *Box) WrapLimit(limit int) *Box {
214 b.allowWrapping = true
215 b.wrappingLimit = limit
216 return b
217}
218
219// ContentAlign sets the horizontal alignment of content inside the box.
220//

Callers 3

TestBoxCopyFunction · 0.80
TestRenderWithWrapLimitFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestBoxCopyFunction · 0.64
TestRenderWithWrapLimitFunction · 0.64