-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
When wordwrap.Write() encounters a hyphen, it immediately adds the existing space, word, and hyphen, without first checking to see if this would exceed the limit. This can cause the hyphen to extend beyond the limit.
Example: wordwrap.String("foo foo-foobar", 7) should return
1234567| <-- limit
foo |
foo- |
foobar |
but actually returns:
1234567| <-- limit
foo foo|- <-- hyphen beyond limit
foobar |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels