You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this particular example, I will spam a lot of hyphenated words, which should wrap at some point, and test the multi-breakpoint feature of this package.
202
-
203
-
The girl was accident-prone, good-looking, quick-thinking, carbon-neutral, bad-tempered, sport-mad, fair-haired, camera-ready, and finally open-mouthed.
204
-
`
200
+
vartext=`My sister-in-law bought a state-of-the-art, energy-efficient, top-rated washing machine from a well-known, highly-recommended manufacturer based in the north-east. It was a last-minute, spur-of-the-moment decision, but the twenty-year guarantee and the user-friendly, self-cleaning features made it a no-brainer.`
205
201
206
202
w:=wrap.NewWrapper()
207
203
208
-
fmt.Println(w.Wrap(loremIpsum, 80))
204
+
fmt.Println(w.Wrap(text, 40))
209
205
// Output:
210
-
// In this particular example, I will spam a lot of hyphenated words, which should
211
-
// wrap at some point, and test the multi-breakpoint feature of this package.
212
-
//
213
-
// The girl was accident-prone, good-looking, quick-thinking, carbon-neutral, bad
214
-
// tempered, sport-mad, fair-haired, camera-ready, and finally open-mouthed.
0 commit comments